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
Examples:
type.writeValue(buffer, [false]) //takes up 2 bytes
or
type.writeValue(buffer, new Array(100).fill(true)) //takes up 14 bytes
The buffer to which to append
The value to write
Generated using TypeDoc
A type storing a variable-length array of
Booleanvalues. This type creates more efficient serializations thannew sb.ArrayType(new sb.BooleanType)for boolean arrays, since it works with bits instead of whole bytes.Example: