CborReaderState Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the state of a CborReader instance.
public enum class CborReaderState
public enum CborReaderState
type CborReaderState =
Public Enum CborReaderState
- Inheritance
Fields
| Name | Value | Description |
|---|---|---|
| Undefined | 0 | Indicates the undefined state. |
| UnsignedInteger | 1 | Indicates that the next CBOR data item is an unsigned integer (major type 0). |
| NegativeInteger | 2 | Indicates that the next CBOR data item is a negative integer (major type 1). |
| ByteString | 3 | Indicates that the next CBOR data item is a byte string (major type 2). |
| StartIndefiniteLengthByteString | 4 | Indicates that the next CBOR data item denotes the start of an indefinite-length byte string (major type 2). |
| EndIndefiniteLengthByteString | 5 | Indicates that the reader is at the end of an indefinite-length byte string (major type 2). |
| TextString | 6 | Indicates that the next CBOR data item is a UTF-8 string (major type 3). |
| StartIndefiniteLengthTextString | 7 | Indicates that the next CBOR data item denotes the start of an indefinite-length UTF-8 text string (major type 3). |
| EndIndefiniteLengthTextString | 8 | Indicates that the reader is at the end of an indefinite-length UTF-8 text string (major type 3). |
| StartArray | 9 | Indicates that the next CBOR data item denotes the start of an array (major type 4). |
| EndArray | 10 | Indicates that the reader is at the end of an array (major type 4). |
| StartMap | 11 | Indicates that the next CBOR data item denotes the start of a map (major type 5). |
| EndMap | 12 | Indicates that the reader is at the end of a map (major type 5). |
| Tag | 13 | Indicates that the next CBOR data item is a semantic tag (major type 6). |
| SimpleValue | 14 | Indicates that the next CBOR data item is a simple value (major type 7). |
| HalfPrecisionFloat | 15 | Indicates that the next CBOR data item is an IEEE 754 Half-Precision float (major type 7). |
| SinglePrecisionFloat | 16 | Indicates that the next CBOR data item is an IEEE 754 Single-Precision float (major type 7). |
| DoublePrecisionFloat | 17 | Indicates that the next CBOR data item is an IEEE 754 Double-Precision float (major type 7). |
| Null | 18 | Indicates that the next CBOR data item is a |
| Boolean | 19 | Indicates that the next CBOR data item encodes a Boolean value (major type 7). |
| Finished | 20 | Indicates that the reader has completed reading a full CBOR document. If AllowMultipleRootLevelValues is set to |
| NeedsMoreData | 21 | Indicates that the reader cannot determine whether another data item is available from the current non-final buffer: the next data item may be incomplete, or the buffer may end after a complete root-level value when AllowMultipleRootLevelValues is enabled. Supply more data using SlideData(ReadOnlyMemory<Byte>, Boolean). |