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:
//Takes 4 bytes
type.writeValue(buffer, -2113664) //or '-2113664'
The buffer to which to append
The value to write
Generated using TypeDoc
Works like FlexUnsignedIntType, but allows for negative values as well. Less efficient for storing positive values than FlexUnsignedIntType, so use that instead if not storing negative values. Also limited to values between
-(2 ** 52)and2 ** 52 - 1. (Encodesvalueas approximately2 * abs(value).)Example: