Home Reference Source
public class | source

DataUtil

Static Method Summary

Static Public Methods
public static

UInt8ArrayToDataURL(uint8array: *, width: *, height: *): *

public static

arrayBufferToString(arrayBuffer: *): *

public static

atob(str: *): *

public static

base64ToArrayBuffer(dataUri: *): *

public static

btoa(str: *): *

public static

isNode(): *

public static

loadResourceAsync(resourceUri: *, isBinary: *, resolveCallback: *, rejectCallback: *): *

public static

stringToBase64(str: *): *

Constructor Summary

Public Constructor
public

Static Public Methods

public static UInt8ArrayToDataURL(uint8array: *, width: *, height: *): * source

Params:

NameTypeAttributeDescription
uint8array *
width *
height *

Return:

*

public static arrayBufferToString(arrayBuffer: *): * source

Params:

NameTypeAttributeDescription
arrayBuffer *

Return:

*

public static atob(str: *): * source

Params:

NameTypeAttributeDescription
str *

Return:

*

public static base64ToArrayBuffer(dataUri: *): * source

Params:

NameTypeAttributeDescription
dataUri *

Return:

*

public static btoa(str: *): * source

Params:

NameTypeAttributeDescription
str *

Return:

*

public static isNode(): * source

Return:

*

public static loadResourceAsync(resourceUri: *, isBinary: *, resolveCallback: *, rejectCallback: *): * source

Params:

NameTypeAttributeDescription
resourceUri *
isBinary *
resolveCallback *
rejectCallback *

Return:

*

public static stringToBase64(str: *): * source

Params:

NameTypeAttributeDescription
str *

Return:

*

Public Constructors

public constructor() source