the value type of the data type
the type(s) from which a value can be constructed
Create a new instance of PrimitiveDataType
the data type name
the constructor function creating the value type
serialise the value into a CBOR encoder
a predicate returning true if the CBOR type is
supported by this data type.
a flag indicating if the data type supports binary deltas
A converter function that converts a value to binary CBOR data
Serialise the value into a CBOR encoder
The constructor function creating the value type
The binary delta type
the delta type
Create a new Bytes 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.
The primitive data type acts as the base class for primitive value types
string,double, andInt64.