The type of non-null
values
The type of non-null
read values
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, {
title: 'Manager',
employee: null //or undefined
})
or
type.writeValue(buffer, {
title: 'Coder',
employee: {age: 19, name: 'Johnny'}
})
The buffer to which to append
The value to write
Generated using TypeDoc
A type storing a value of another type or
null
orundefined
.null
andundefined
are treated identically, and reading either value will result innull
.Example: