Interface ICBORReaderCallback

The CBORReader callback that is used for visitor style reading of a CBOR-encoded stream.

Namespace: PushTechnology.ClientInterface.IO.CBOR
Assembly: Diffusion.Client.dll
Syntax
public interface ICBORReaderCallback

Methods

OnArrayEnd(CBORReader)

Called if the reader has encountered the end of an array.

Declaration
void OnArrayEnd(CBORReader reader)
Parameters
Type Name Description
CBORReader reader

The current CBOR reader instance.

OnArrayStart(CBORReader)

Called if the reader has encountered the start of an array.

Declaration
void OnArrayStart(CBORReader reader)
Parameters
Type Name Description
CBORReader reader

The current CBOR reader instance.

OnComplete()

Called if the reader has reached the end of the stream.

Declaration
void OnComplete()

OnError(Exception)

Called if the reader has encountered an error.

Declaration
void OnError(Exception error)
Parameters
Type Name Description
Exception error

The error as a System.Exception.

OnFieldname(CBORReader, String)

Called if the reader has encountered a field name.

Declaration
void OnFieldname(CBORReader reader, string fieldname)
Parameters
Type Name Description
CBORReader reader

The current CBOR reader instance.

System.String fieldname

The field name as a UTF-8 encoded string.

OnObjectEnd(CBORReader)

Called if the reader has encountered the end of an object.

Declaration
void OnObjectEnd(CBORReader reader)
Parameters
Type Name Description
CBORReader reader

The current CBOR reader instance.

OnObjectStart(CBORReader)

Called if the reader has encountered the start of an object.

Declaration
void OnObjectStart(CBORReader reader)
Parameters
Type Name Description
CBORReader reader

The current CBOR reader instance.

OnValueBoolean(CBORReader, Boolean)

Called if the reader has encountered a boolean value.

Declaration
void OnValueBoolean(CBORReader reader, bool value)
Parameters
Type Name Description
CBORReader reader

The current CBOR reader instance.

System.Boolean value

The boolean value.

OnValueBytes(CBORReader)

Called if the reader has encountered a byte sequence value.

Declaration
void OnValueBytes(CBORReader reader)
Parameters
Type Name Description
CBORReader reader

The current CBOR reader instance.

OnValueFloat(CBORReader, Double)

Called if the reader has encountered a floating point value.

Declaration
void OnValueFloat(CBORReader reader, double value)
Parameters
Type Name Description
CBORReader reader

The current CBOR reader instance.

System.Double value

The floating point value as a 64-bit floating point.

OnValueInteger(CBORReader, Int64)

Called if the reader has encountered an integer value.

Declaration
void OnValueInteger(CBORReader reader, long value)
Parameters
Type Name Description
CBORReader reader

The current CBOR reader instance.

System.Int64 value

The integer value as a 64-bit signed integer.

OnValueNull(CBORReader)

Called if the reader has encountered a null value.

Declaration
void OnValueNull(CBORReader reader)
Parameters
Type Name Description
CBORReader reader

The current CBOR reader instance.

OnValueString(CBORReader)

Called if the reader has encountered a string value.

Declaration
void OnValueString(CBORReader reader)
Parameters
Type Name Description
CBORReader reader

The current CBOR reader instance.

Back to top