The type of values stored in keys of the map
The type of values stored in values of the map
The type of keys this type will read
The type of values this type will read
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:
let GOOG = new Map()
.set(new Date(2000, 0, 1), 33.2)
.set(new Date(2000, 0, 2), 38.5)
.set(new Date(2000, 0, 3), 39.9)
let YHOO = new Map()
.set(new Date(2010, 0, 1), 10.1)
.set(new Date(2010, 0, 2), 10.2)
let AMZN = new Map()
let stocks = new Map()
.set('GOOG', GOOG)
.set('YHOO', YHOO)
.set('AMZN', AMZN)
type.writeValue(buffer, stocks)
The buffer to which to append
The value to write
Generated using TypeDoc
A type storing a variable-size mapping of keys of one type to values of another
Example: