Requires that the buffer be a GrowableBuffer or AppendableStream
The value to assert is an AppendableBuffer
Determines whether the input is a Type with the same class
A value, usually a Type instance
whether this
and otherType
are instances of the same Type class
Appends value bytes to an AppendableBuffer according to the type
Example:
let octets = new Uint8Array([1, 2, 3, 4, 5])
type.writeValue(buffer, octets)
// or
type.writeValue(buffer, octets.buffer)
The buffer to which to append
The value to write
Generated using TypeDoc
A type storing a variable-length array of bytes. This is intended for data that doesn't fit any other category, e.g. the contents of a PNG file.
Example: