浏览代码

* Add toBase64, patch by Henrique Gottardi Werlang

Michaël Van Canneyt 6 月之前
父节点
当前提交
45cb166669
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      packages/rtl/src/js.pas

+ 2 - 0
packages/rtl/src/js.pas

@@ -631,6 +631,8 @@ type
     class function _of(aValue : TJSValueDynArray) : TJSInt8Array; varargs; external name 'of'; reintroduce; overload;
     function subarray(aBegin, aEnd: Integer): TJSInt8Array;  overload;
     function subarray(aBegin: Integer): TJSInt8Array; overload;
+    function toBase64: String;
+    function toBase64(options: TJSObject): String;
     procedure _set(anArray : Array of ShortInt); external name 'set'; reintroduce; overload;
     procedure _set(anArray : Array of ShortInt; anOffset : NativeInt); external name 'set';
     property values[Index : NativeInt] : Shortint Read getTypedValue Write setTypedValue; default;