Class: RIFFEncoder
Serialization.RIFFEncoder(format, versionopt)
InkObject format encoder
Constructor
new RIFFEncoder(format, versionopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
format | string|Uint8Array | RIFF format FourCC | |
version | string|Uint8Array | <optional> | File format semantic version (MAJOR.MINOR.PATCH) |
Properties:
Name | Type | Description |
---|---|---|
data | Uint8Array | Encoded data container |
Since:
- version 1.3
Methods
add(data, descriptor)
Encodes data
Parameters:
Name | Type | Description |
---|---|---|
data | Uint8Array|JSON|string|Array.<(Uint8Array|JSON|string|Array)> | User defined data |
descriptor | Serialization.RIFFChunkDescriptor | Chunk configuration (for list type descriptor describes item) |