Class CBORType
The CBOR type.
Namespace: PushTechnology.ClientInterface.IO.CBOR
Assembly: Diffusion.Client.dll
Syntax
public sealed class CBORType : object
Fields
ARRAY_END
Represents the end of a CBOR array structure type.
Declaration
public static readonly CBORType ARRAY_END
Field Value
Type | Description |
---|---|
CBORType |
ARRAY_START
Represents the start of a CBOR array structure type.
Declaration
public static readonly CBORType ARRAY_START
Field Value
Type | Description |
---|---|
CBORType |
BYTE_SEQUENCE
Represents the CBOR byte sequence type.
Declaration
public static readonly CBORType BYTE_SEQUENCE
Field Value
Type | Description |
---|---|
CBORType |
FIELD_NAME
Represents the CBOR UTF-8 encoded field name type.
Declaration
public static readonly CBORType FIELD_NAME
Field Value
Type | Description |
---|---|
CBORType |
OBJECT_END
Represents the end of a CBOR object structure type.
Declaration
public static readonly CBORType OBJECT_END
Field Value
Type | Description |
---|---|
CBORType |
OBJECT_START
Represents the start of a CBOR object structure type.
Declaration
public static readonly CBORType OBJECT_START
Field Value
Type | Description |
---|---|
CBORType |
VALUE_FALSE
Represents the CBOR boolean value type that is set to false.
Declaration
public static readonly CBORType VALUE_FALSE
Field Value
Type | Description |
---|---|
CBORType |
VALUE_FLOAT
Represents the CBOR floating point value type.
Declaration
public static readonly CBORType VALUE_FLOAT
Field Value
Type | Description |
---|---|
CBORType |
VALUE_INTEGER
Represents the CBOR integer value type.
Declaration
public static readonly CBORType VALUE_INTEGER
Field Value
Type | Description |
---|---|
CBORType |
VALUE_NULL
Represents the CBOR 'null' value type.
Declaration
public static readonly CBORType VALUE_NULL
Field Value
Type | Description |
---|---|
CBORType |
VALUE_STRING
Represents the CBOR UTF-8 encoded string type.
Declaration
public static readonly CBORType VALUE_STRING
Field Value
Type | Description |
---|---|
CBORType |
VALUE_TRUE
Represents the CBOR boolean value that is set to true.
Declaration
public static readonly CBORType VALUE_TRUE
Field Value
Type | Description |
---|---|
CBORType |
Properties
IsBoolean
Returns true if the current CBOR type is a boolean value. Otherwise false.
Declaration
public bool IsBoolean { get; }
Property Value
Type | Description |
---|---|
Boolean |
Remarks
The boolean value will either be true or false. It will never be represented as a integer or string value.
IsNumeric
Returns true if the current CBOR type is a numeric type. Otherwise false.
Declaration
public bool IsNumeric { get; }
Property Value
Type | Description |
---|---|
Boolean |
Remarks
A numeric type can either be a integer or floating point.
IsSequence
Returns true if the current CBOR type is a sequence of bytes. Otherwise false.
Declaration
public bool IsSequence { get; }
Property Value
Type | Description |
---|---|
Boolean |
Remarks
A sequence of bytes could either be a UTF-8 encoded field name, a UTF-8 encoded string or a simple sequence of bytes with no predetermined encoding.
IsStructureEnd
Returns true if the current CBOR type indicated the end of a structure. Otherwise false;
Declaration
public bool IsStructureEnd { get; }
Property Value
Type | Description |
---|---|
Boolean |
Remarks
A structure could either be a simple sequence of values or a sequence of key/value pairs, where the key is a UTF-8 encoded fieldname.
IsStructureStart
Returns true if the current CBOR type indicates the start of a structure. Otherwise false.
Declaration
public bool IsStructureStart { get; }
Property Value
Type | Description |
---|---|
Boolean |
Remarks
A structure could either be a simple sequence of values or a sequence of key/value pairs, where the key is a UTF-8 encoded fieldname.