
A loadable binary data asset. This asset type loads array of bytes from a remote file.
Kind: global class
Uint8ArrayPromisePromiseStringKind: instance property of BinaryAsset
Uint8ArrayGet binary data.
Kind: instance property of BinaryAsset
Returns: Uint8Array - Data as bytes array.
PromiseLoad the binary data from the asset URL.
Kind: instance method of BinaryAsset
Returns: Promise - Promise to resolve when fully loaded.
PromiseCreate the binary data asset from array or Uint8Array.
Kind: instance method of BinaryAsset
Returns: Promise - Promise to resolve when asset is ready.
| Param | Type | Description |
|---|---|---|
| source | Array.<Number> | Uint8Array |
Data to create asset from. |
Kind: instance method of BinaryAsset
StringConvert and return data as string.
Kind: instance method of BinaryAsset
Returns: String - Data converted to string.