the value type of the data type
the type(s) from which a value can be constructed
the binary type containing the CBOR data
Create a new instance of AbstractDataType
the data type name
the constructor function creating the value type
a constructor function that creates the binary CBOR representation
a converter function that converts a value to binary CBOR data
a converter function that converts the binary CBOR data to a value
an array of constructor functions. These will be added to the
valueConverters map. Each constructor must implement
a static toString function.
a flag indicating if the data type supports binary deltas
If the data type supports binary deltas, binaryDeltaTypeImpl contains
the binary delta type
A converter function that converts the binary CBOR data to a value
A constructor function that creates the binary CBOR representation
The data type name
A converter function that converts a value to binary CBOR data
The constructor function creating the value type
A map of value converters
Value converters convert binary data containing the CBOR value into a different value type.
The key of the map is a string representation of the destination type.
The binary delta type
the delta type
Create a new BufferSlice instance from data
the value or CBOR data containing the record
a new Binary representation of the value
The external type identifier.
the name of this datatype
Convert a value to bytes
the value
a CBOR representation of the value
Convert the objet to a string
a string representation of the AbstractDataType
Serialise a value to binary
the value to serialise. For primitive and JSON datatypes
the value can be undefined or null. In this case a
null value will be serialised.
the serialised value as a buffer
Serialise a value to binary
the value to serialise. For primitive and JSON datatypes
the value can be undefined or null. In this case a
null value will be serialised.
the serialised value as a buffer
Copyright © 2025 DiffusionData Ltd. All Rights Reserved.
An abstract implementation of the DataType interface