Skip to main content

Class: RIFFEncoder

Serialization.RIFFEncoder(format, versionopt)

InkObject format encoder

Constructor

new RIFFEncoder(format, versionopt)

Parameters:
NameTypeAttributesDescription
formatstring|Uint8ArrayRIFF format FourCC
versionstring|Uint8Array<optional>File format semantic version (MAJOR.MINOR.PATCH)
Properties:
NameTypeDescription
dataUint8ArrayEncoded data container

Since:

  • version 1.3

Methods

add(data, descriptor)

Encodes data

Parameters:
NameTypeDescription
dataUint8Array|JSON|string|Array.<(Uint8Array|JSON|string|Array)>User defined data
descriptorSerialization.RIFFChunkDescriptorChunk configuration (for list type descriptor describes item)

Home