Private
#bufferPrivate
#pushUInt16Private
#pushUInt32Private
#pushUInt8Private
#writeWrites a typed value to the buffer.
The major type of the value.
The value.
Writes the provided value as a tagged bignum encoding, as described in RFC7049 section 2.4.2.
The value to write.
Writes a boolean value (major type 7).
The value to write.
Writes a buffer as a byte string encoding (major type 2).
The value to write.
Writes a single CBOR data item which has already been encoded.
The value to write.
Writes the end of an array (major type 4).
Writes the end of a map (major type 5).
Writes a value as a signed integer encoding (major types 0,1)
The value to write.
Writes a value as a signed integer encoding (major types 0,1)
The value to write.
Writes a null value (major type 7).
Writes the start of a definite or indefinite-length array (major type 4).
Optional
length: numberThe length of the definite-length array, or undefined for an indefinite-length array.
Writes the start of a definite or indefinite-length map (major type 5).
Optional
length: numberThe length of the definite-length map, or null for an indefinite-length map.
Assign a semantic tag (major type 6) to the next data item.
semantic tag.
Writes the next data item as a UTF-8 text string (major type 3).
The string.
Writes an undefined value.
Generated using TypeDoc
A simple writer for Concise Binary Object Representation (CBOR) encoded data.