CBOR Reader State¶
-
enum cardano_cbor_reader_state_t¶
Specifies the state of a CborReader instance.
This enumeration outlines the possible states of a CborReader as it processes CBOR data items.
Values:
-
enumerator CARDANO_CBOR_READER_STATE_UNDEFINED¶
Indicates the undefined state.
This state is used when the CborReader has not yet begun processing or the state is otherwise unknown.
-
enumerator CARDANO_CBOR_READER_STATE_UNSIGNED_INTEGER¶
Indicates that the next CBOR data item is an unsigned integer (major type 0).
-
enumerator CARDANO_CBOR_READER_STATE_NEGATIVE_INTEGER¶
Indicates that the next CBOR data item is a negative integer (major type 1).
-
enumerator CARDANO_CBOR_READER_STATE_BYTESTRING¶
Indicates that the next CBOR data item is a byte string (major type 2).
-
enumerator CARDANO_CBOR_READER_STATE_START_INDEFINITE_LENGTH_BYTESTRING¶
Indicates the start of an indefinite-length byte string (major type 2).
-
enumerator CARDANO_CBOR_READER_STATE_END_INDEFINITE_LENGTH_BYTESTRING¶
Indicates the end of an indefinite-length byte string (major type 2).
-
enumerator CARDANO_CBOR_READER_STATE_TEXTSTRING¶
Indicates that the next CBOR data item is a UTF-8 string (major type 3).
-
enumerator CARDANO_CBOR_READER_STATE_START_INDEFINITE_LENGTH_TEXTSTRING¶
Indicates the start of an indefinite-length UTF-8 text string (major type 3).
-
enumerator CARDANO_CBOR_READER_STATE_END_INDEFINITE_LENGTH_TEXTSTRING¶
Indicates the end of an indefinite-length UTF-8 text string (major type 3).
-
enumerator CARDANO_CBOR_READER_STATE_START_ARRAY¶
Indicates the start of an array (major type 4).
-
enumerator CARDANO_CBOR_READER_STATE_END_ARRAY¶
Indicates the end of an array (major type 4).
-
enumerator CARDANO_CBOR_READER_STATE_START_MAP¶
Indicates the start of a map (major type 5).
-
enumerator CARDANO_CBOR_READER_STATE_END_MAP¶
Indicates the end of a map (major type 5).
-
enumerator CARDANO_CBOR_READER_STATE_TAG¶
Indicates that the next CBOR data item is a semantic reader_state (major type 6).
-
enumerator CARDANO_CBOR_READER_STATE_SIMPLE_VALUE¶
Indicates that the next CBOR data item is a simple value (major type 7).
-
enumerator CARDANO_CBOR_READER_STATE_HALF_PRECISION_FLOAT¶
Indicates an IEEE 754 Half-Precision float (major type 7).
-
enumerator CARDANO_CBOR_READER_STATE_SINGLE_PRECISION_FLOAT¶
Indicates an IEEE 754 Single-Precision float (major type 7).
-
enumerator CARDANO_CBOR_READER_STATE_DOUBLE_PRECISION_FLOAT¶
Indicates an IEEE 754 Double-Precision float (major type 7).
-
enumerator CARDANO_CBOR_READER_STATE_NULL¶
Indicates a null literal (major type 7).
-
enumerator CARDANO_CBOR_READER_STATE_BOOLEAN¶
Indicates a bool value (major type 7).
-
enumerator CARDANO_CBOR_READER_STATE_FINISHED¶
Indicates the completion of reading a full CBOR document.
This state is reached when the CborReader has successfully processed an entire CBOR document and there are no more data items to read.
-
enumerator CARDANO_CBOR_READER_STATE_UNDEFINED¶