DogCborExtension extension

on
  • DogEngine

Methods

fromCbor<T>(List<int> encoded, {IterableKind kind = IterableKind.none, Type? type, TypeTree? tree}) → T

Available on DogEngine, provided by the DogCborExtension extension

Converts Cbor supplied via encoded to its normal representation by using the converter associated with T, type or tree.
fromCborString<T>(String encoded, {IterableKind kind = IterableKind.none, Type? type, TypeTree? tree}) → T

Available on DogEngine, provided by the DogCborExtension extension

Converts Cbor supplied via encoded to its normal representation by using the converter associated with T, type or tree. The encoded is expected to be a base64 encoded string.
toCbor<T>(T value, {IterableKind kind = IterableKind.none, Type? type, TypeTree? tree}) List<int>

Available on DogEngine, provided by the DogCborExtension extension

Converts a value to its Cbor representation using the converter associated with T, type or tree.
toCborString<T>(T value, {IterableKind kind = IterableKind.none, Type? type, TypeTree? tree}) String

Available on DogEngine, provided by the DogCborExtension extension

Converts a value to its Cbor representation using the converter associated with T, type or tree. Returns the result as a base64.