Skip to content

Cbor Class ​

Definition ​

Provides helper methods for CBOR serialization and deserialization.

  • Namespace: JASE.Serializers
  • Assembly: JASE.Serializers.dll

Properties ​

NameDescription
PreferCborEnumAsStringWhen (the default) enum values are serialized as their text representation;

Methods ​

NameDescription
T Deserialize(ReadOnlyMemory<byte> bytes)Deserialize CBOR bytes to an object
T Deserialize(byte[] bytes)Deserialize CBOR bytes to an object
object Deserialize(ReadOnlyMemory<byte> bytes)Deserialize CBOR bytes to an object
object Deserialize(byte[] bytes)Deserialize CBOR bytes to an object
byte[] Serialize(object input)Serializes an object into CBOR format.
void SetPreferCborEnumAsString(bool value)Manage whether enums are serialized as text () or their numeric value.