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 Date(2017, 0, 1, 16, 37, 24, 189)) //16:37:24.189
The buffer to which to append
The value to write
Generated using TypeDoc
A type storing a specific time of day, with millisecond precision. The value is stored as a 4-byte unsigned integer. Writes
Date
objects, but their year, month, and date are ignored.When values are read, they are set to the arbitrary day of
1970-01-01
.Example: