Forráskód Böngészése

Added source byte array encode overload.

woollybah 6 éve
szülő
commit
a505714b3f
1 módosított fájl, 7 hozzáadás és 0 törlés
  1. 7 0
      base64.mod/base64.bmx

+ 7 - 0
base64.mod/base64.bmx

@@ -79,6 +79,13 @@ Type TBase64
 						        -9,-9,-9,-9]
 	
 	Public
+
+	Rem
+	bbdoc: Encodes byte array data @source to a Base64 encoded String, starting at @offset.
+	End Rem
+	Function Encode:String(source:Byte[], offset:Int = 0, options:EBase64Options = EBase64Options.None)
+		Return Encode(source, source.length, offset, options)
+	End Function
 	
 	Rem
 	bbdoc: Encodes byte data @source to a Base64 encoded String, starting at @offset and of @length bytes.