Skip to content

Cbor

Extends: RefCounted

Description

Constants Descriptions

Status

enum Status{SUCCESS = 0, DECODING_INVALID_INT = 1, DECODING_INVALID_BYTES = 2, DECODING_INVALID_CONSTR = 3, DECODING_INVALID_TAG = 4, DECODING_UNSUPPORTED_TYPE = 5, ENCODING_INVALID_TAG = 6, ENCODING_UNKNOWN_OBJECT = 7, ENCODING_UNSUPPORTED_TYPE = 8, CBOR_EVENT_ERROR = 9}

Method Descriptions

deserialize (static)

func deserialize(bytes: PackedByteArray) -> DeserializeResult

serialize (static)

func serialize(data: Variant) -> SerializeResult

Sub-classes

DeserializeResult

Property Descriptions

value

var value: Variant
  • Getter: @value_getter

WARNING: This function may fail! First match on Result.tag or call Result.is_ok.

error

var error: String
  • Getter: @error_getter

WARNING: This function may fail! First match on Result.tag or call Result._is_err.

SerializeResult

Property Descriptions

value

var value: PackedByteArray
  • Getter: @value_getter

WARNING: This function may fail! First match on Result.tag or call Result.is_ok.

error

var error: String
  • Getter: @error_getter

WARNING: This function may fail! First match on Result.tag or call Result._is_err.