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
readerCBORReaderThe current CBOR reader instance.
OnArrayStart(CBORReader)
Called if the reader has encountered the start of an array.
void OnArrayStart(CBORReader reader)
Parameters
readerCBORReaderThe 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
errorExceptionThe error as a
System.Exception.
OnFieldname(CBORReader, string)
Called if the reader has encountered a field name.
void OnFieldname(CBORReader reader, string fieldname)
Parameters
readerCBORReaderThe current CBOR reader instance.
fieldnamestringThe 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
readerCBORReaderThe current CBOR reader instance.
OnObjectStart(CBORReader)
Called if the reader has encountered the start of an object.
void OnObjectStart(CBORReader reader)
Parameters
readerCBORReaderThe current CBOR reader instance.
OnValueBoolean(CBORReader, bool)
Called if the reader has encountered a boolean value.
void OnValueBoolean(CBORReader reader, bool value)
Parameters
readerCBORReaderThe current CBOR reader instance.
valueboolThe boolean value.
OnValueBytes(CBORReader)
Called if the reader has encountered a byte sequence value.
void OnValueBytes(CBORReader reader)
Parameters
readerCBORReaderThe current CBOR reader instance.
OnValueFloat(CBORReader, double)
Called if the reader has encountered a floating point value.
void OnValueFloat(CBORReader reader, double value)
Parameters
readerCBORReaderThe current CBOR reader instance.
valuedoubleThe 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
readerCBORReaderThe current CBOR reader instance.
valuelongThe integer value as a 64-bit signed integer.
OnValueNull(CBORReader)
Called if the reader has encountered a null value.
void OnValueNull(CBORReader reader)
Parameters
readerCBORReaderThe current CBOR reader instance.
OnValueString(CBORReader)
Called if the reader has encountered a string value.
void OnValueString(CBORReader reader)
Parameters
readerCBORReaderThe current CBOR reader instance.