Table of Contents

Interface ICBORReaderCallback

Namespace
PushTechnology.ClientInterface.IO.CBOR
Assembly
Diffusion.Client.dll

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

public interface ICBORReaderCallback

Methods

OnArrayEnd(CBORReader)

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

void OnArrayEnd(CBORReader reader)

Parameters

reader CBORReader

The current CBOR reader instance.

OnArrayStart(CBORReader)

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

void OnArrayStart(CBORReader reader)

Parameters

reader CBORReader

The current CBOR reader instance.

OnComplete()

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

void OnComplete()

OnError(Exception)

Called if the reader has encountered an error.

void OnError(Exception error)

Parameters

error Exception

The error as a System.Exception.

OnFieldname(CBORReader, string)

Called if the reader has encountered a field name.

void OnFieldname(CBORReader reader, string fieldname)

Parameters

reader CBORReader

The current CBOR reader instance.

fieldname string

The field name as a UTF-8 encoded string.

OnObjectEnd(CBORReader)

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

void OnObjectEnd(CBORReader reader)

Parameters

reader CBORReader

The current CBOR reader instance.

OnObjectStart(CBORReader)

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

void OnObjectStart(CBORReader reader)

Parameters

reader CBORReader

The current CBOR reader instance.

OnValueBoolean(CBORReader, bool)

Called if the reader has encountered a boolean value.

void OnValueBoolean(CBORReader reader, bool value)

Parameters

reader CBORReader

The current CBOR reader instance.

value bool

The boolean value.

OnValueBytes(CBORReader)

Called if the reader has encountered a byte sequence value.

void OnValueBytes(CBORReader reader)

Parameters

reader CBORReader

The current CBOR reader instance.

OnValueFloat(CBORReader, double)

Called if the reader has encountered a floating point value.

void OnValueFloat(CBORReader reader, double value)

Parameters

reader CBORReader

The current CBOR reader instance.

value double

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

OnValueInteger(CBORReader, long)

Called if the reader has encountered an integer value.

void OnValueInteger(CBORReader reader, long value)

Parameters

reader CBORReader

The current CBOR reader instance.

value long

The integer value as a 64-bit signed integer.

OnValueNull(CBORReader)

Called if the reader has encountered a null value.

void OnValueNull(CBORReader reader)

Parameters

reader CBORReader

The current CBOR reader instance.

OnValueString(CBORReader)

Called if the reader has encountered a string value.

void OnValueString(CBORReader reader)

Parameters

reader CBORReader

The current CBOR reader instance.