The number of Booleans in each value of this type
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:
type.writeValue(buffer, new Array(100).fill(true)) //takes up 13 bytes
The buffer to which to append
The value to write
Generated using TypeDoc
A type storing a fixed-length array of
Booleanvalues. This type creates more efficient serializations thannew sb.TupleType({type: new sb.BooleanType})for boolean tuples, since it works with bits instead of whole bytes.Example: