The type of the value
The type used to serialize the value
The value that this type serializes
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, {type: 'boolean', value: true})
type.writeValue(buffer, {type: 'string', value: 'abc'})
The buffer to which to append
The value to write
Generated using TypeDoc
A type storing a fixed value. The value takes up no space in the value bytes, only the type bytes. Functions as an EnumType with only one value.
Example: