The type of each element in the set
The type of each element in the read set
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 person1 = {dob: new Date(1980, 3, 10), name: 'Alfred'}
let person2 = {dob: new Date(1970, 4, 9), name: 'Betty'}
let person3 = {dob: new Date(1990, 5, 8), name: 'Cramer'}
type.writeValue(buffer, new Set([person1, person2, person3]))
The buffer to which to append
The value to write
Generated using TypeDoc
A type storing a variable-size set of values of the same type. Works much like ArrayType except all values are
Set
s.Example: