C# Class MsgPack.ItemsUnpacker

Mostrar archivo Open project: msgpack/msgpack-cli Class Usage Examples

Private Properties

Property Type Description
CheckLength void
GetPreviousPosition bool
ReadArrayLengthCore long
ReadBinaryAsyncCore Task
ReadBinaryCore byte[]
ReadByteFromSource int
ReadByteFromSourceAsync Task
ReadByteStrict byte
ReadByteStrictAsync Task
ReadMapLengthCore long
ReadMessagePackExtendedTypeObjectAsyncCore Task
ReadMessagePackExtendedTypeObjectCore MessagePackExtendedTypeObject
ReadStrict void
ReadStrictAsync Task
ReadStringAsyncCore Task
ReadStringCore string
ReadSubtreeArrayLength bool
ReadSubtreeArrayLengthAsync Task>
ReadSubtreeBinary bool
ReadSubtreeBinaryAsync Task>
ReadSubtreeBoolean bool
ReadSubtreeBooleanAsync Task>
ReadSubtreeByte bool
ReadSubtreeByteAsync Task>
ReadSubtreeDouble bool
ReadSubtreeDoubleAsync Task>
ReadSubtreeInt16 bool
ReadSubtreeInt16Async Task>
ReadSubtreeInt32 bool
ReadSubtreeInt32Async Task>
ReadSubtreeInt64 bool
ReadSubtreeInt64Async Task>
ReadSubtreeItem bool
ReadSubtreeItemAsync Task
ReadSubtreeMapLength bool
ReadSubtreeMapLengthAsync Task>
ReadSubtreeMessagePackExtendedTypeObject bool
ReadSubtreeMessagePackExtendedTypeObjectAsync Task>
ReadSubtreeNullableBoolean bool
ReadSubtreeNullableBooleanAsync Task>
ReadSubtreeNullableByte bool
ReadSubtreeNullableByteAsync Task>
ReadSubtreeNullableDouble bool
ReadSubtreeNullableDoubleAsync Task>
ReadSubtreeNullableInt16 bool
ReadSubtreeNullableInt16Async Task>
ReadSubtreeNullableInt32 bool
ReadSubtreeNullableInt32Async Task>
ReadSubtreeNullableInt64 bool
ReadSubtreeNullableInt64Async Task>
ReadSubtreeNullableSByte bool
ReadSubtreeNullableSByteAsync Task>
ReadSubtreeNullableSingle bool
ReadSubtreeNullableSingleAsync Task>
ReadSubtreeNullableUInt16 bool
ReadSubtreeNullableUInt16Async Task>
ReadSubtreeNullableUInt32 bool
ReadSubtreeNullableUInt32Async Task>
ReadSubtreeNullableUInt64 bool
ReadSubtreeNullableUInt64Async Task>
ReadSubtreeObject bool
ReadSubtreeObjectAsync Task>
ReadSubtreeSByte bool
ReadSubtreeSByteAsync Task>
ReadSubtreeSingle bool
ReadSubtreeSingleAsync Task>
ReadSubtreeString bool
ReadSubtreeStringAsync Task>
ReadSubtreeUInt16 bool
ReadSubtreeUInt16Async Task>
ReadSubtreeUInt32 bool
ReadSubtreeUInt32Async Task>
ReadSubtreeUInt64 bool
ReadSubtreeUInt64Async Task>
ReadValue ReadValueResult
ReadValueAsync Task
SkipSubtreeItem long?
SkipSubtreeItemAsync Task
ThrowEofException void
ThrowEofException void
ThrowTooLongLengthException void
ThrowTypeException void
ThrowUnassignedMessageTypeException void
ThrowUnexpectedExtCodeException void

Public Methods

Method Description
ItemsUnpacker ( System.Stream stream, PackerUnpackerStreamOptions streamOptions ) : System
ReadArrayLength ( System.Int64 &result ) : bool
ReadArrayLengthAsync ( CancellationToken cancellationToken ) : Task>
ReadBinary ( Byte &result ) : bool
ReadBinaryAsync ( CancellationToken cancellationToken ) : Task>
ReadBoolean ( System.Boolean &result ) : bool
ReadBooleanAsync ( CancellationToken cancellationToken ) : Task>
ReadByte ( Byte &result ) : bool
ReadByteAsync ( CancellationToken cancellationToken ) : Task>
ReadDouble ( Double &result ) : bool
ReadDoubleAsync ( CancellationToken cancellationToken ) : Task>
ReadInt16 ( Int16 &result ) : bool
ReadInt16Async ( CancellationToken cancellationToken ) : Task>
ReadInt32 ( Int32 &result ) : bool
ReadInt32Async ( CancellationToken cancellationToken ) : Task>
ReadInt64 ( System.Int64 &result ) : bool
ReadInt64Async ( CancellationToken cancellationToken ) : Task>
ReadMapLength ( System.Int64 &result ) : bool
ReadMapLengthAsync ( CancellationToken cancellationToken ) : Task>
ReadMessagePackExtendedTypeObject ( MessagePackExtendedTypeObject &result ) : bool
ReadMessagePackExtendedTypeObjectAsync ( CancellationToken cancellationToken ) : Task>
ReadNullableBoolean ( System.Boolean &result ) : bool
ReadNullableBooleanAsync ( CancellationToken cancellationToken ) : Task>
ReadNullableByte ( Byte &result ) : bool
ReadNullableByteAsync ( CancellationToken cancellationToken ) : Task>
ReadNullableDouble ( Double &result ) : bool
ReadNullableDoubleAsync ( CancellationToken cancellationToken ) : Task>
ReadNullableInt16 ( Int16 &result ) : bool
ReadNullableInt16Async ( CancellationToken cancellationToken ) : Task>
ReadNullableInt32 ( Int32 &result ) : bool
ReadNullableInt32Async ( CancellationToken cancellationToken ) : Task>
ReadNullableInt64 ( System.Int64 &result ) : bool
ReadNullableInt64Async ( CancellationToken cancellationToken ) : Task>
ReadNullableSByte ( SByte &result ) : bool
ReadNullableSByteAsync ( CancellationToken cancellationToken ) : Task>
ReadNullableSingle ( System.Single &result ) : bool
ReadNullableSingleAsync ( CancellationToken cancellationToken ) : Task>
ReadNullableUInt16 ( UInt16 &result ) : bool
ReadNullableUInt16Async ( CancellationToken cancellationToken ) : Task>
ReadNullableUInt32 ( UInt32 &result ) : bool
ReadNullableUInt32Async ( CancellationToken cancellationToken ) : Task>
ReadNullableUInt64 ( System.UInt64 &result ) : bool
ReadNullableUInt64Async ( CancellationToken cancellationToken ) : Task>
ReadObject ( MessagePackObject &result ) : bool
ReadObjectAsync ( CancellationToken cancellationToken ) : Task>
ReadSByte ( SByte &result ) : bool
ReadSByteAsync ( CancellationToken cancellationToken ) : Task>
ReadSingle ( System.Single &result ) : bool
ReadSingleAsync ( CancellationToken cancellationToken ) : Task>
ReadString ( String &result ) : bool
ReadStringAsync ( CancellationToken cancellationToken ) : Task>
ReadUInt16 ( UInt16 &result ) : bool
ReadUInt16Async ( CancellationToken cancellationToken ) : Task>
ReadUInt32 ( UInt32 &result ) : bool
ReadUInt32Async ( CancellationToken cancellationToken ) : Task>
ReadUInt64 ( UInt64 &result ) : bool
ReadUInt64Async ( CancellationToken cancellationToken ) : Task>

Protected Methods

Method Description
Dispose ( bool disposing ) : void
ReadAsyncCore ( CancellationToken cancellationToken ) : Task
ReadCore ( ) : bool
ReadSubtreeCore ( ) : Unpacker

Starts unpacking of current subtree.

SkipAsyncCore ( CancellationToken cancellationToken ) : Task
SkipCore ( ) : long?

Private Methods

Method Description
CheckLength ( long length, ReadValueResult type ) : void
GetPreviousPosition ( long &offsetOrPosition ) : bool
ReadArrayLengthCore ( long length ) : long
ReadBinaryAsyncCore ( long length, CancellationToken cancellationToken ) : Task
ReadBinaryCore ( long length ) : byte[]
ReadByteFromSource ( ) : int
ReadByteFromSourceAsync ( CancellationToken cancellationToken ) : Task
ReadByteStrict ( ) : byte
ReadByteStrictAsync ( CancellationToken cancellationToken ) : Task
ReadMapLengthCore ( long length ) : long
ReadMessagePackExtendedTypeObjectAsyncCore ( ReadValueResult type, CancellationToken cancellationToken ) : Task
ReadMessagePackExtendedTypeObjectCore ( ReadValueResult type ) : MessagePackExtendedTypeObject
ReadStrict ( byte buffer, int size ) : void
ReadStrictAsync ( byte buffer, int size, CancellationToken cancellationToken ) : Task
ReadStringAsyncCore ( long length, CancellationToken cancellationToken ) : Task
ReadStringCore ( long length ) : string
ReadSubtreeArrayLength ( System.Int64 &result ) : bool
ReadSubtreeArrayLengthAsync ( CancellationToken cancellationToken ) : Task>
ReadSubtreeBinary ( Byte &result ) : bool
ReadSubtreeBinaryAsync ( CancellationToken cancellationToken ) : Task>
ReadSubtreeBoolean ( System.Boolean &result ) : bool
ReadSubtreeBooleanAsync ( CancellationToken cancellationToken ) : Task>
ReadSubtreeByte ( Byte &result ) : bool
ReadSubtreeByteAsync ( CancellationToken cancellationToken ) : Task>
ReadSubtreeDouble ( Double &result ) : bool
ReadSubtreeDoubleAsync ( CancellationToken cancellationToken ) : Task>
ReadSubtreeInt16 ( Int16 &result ) : bool
ReadSubtreeInt16Async ( CancellationToken cancellationToken ) : Task>
ReadSubtreeInt32 ( Int32 &result ) : bool
ReadSubtreeInt32Async ( CancellationToken cancellationToken ) : Task>
ReadSubtreeInt64 ( System.Int64 &result ) : bool
ReadSubtreeInt64Async ( CancellationToken cancellationToken ) : Task>
ReadSubtreeItem ( ) : bool

Read subtree item from current stream.

This method only be called from SubtreeUnpacker.

ReadSubtreeItemAsync ( CancellationToken cancellationToken ) : Task
ReadSubtreeMapLength ( System.Int64 &result ) : bool
ReadSubtreeMapLengthAsync ( CancellationToken cancellationToken ) : Task>
ReadSubtreeMessagePackExtendedTypeObject ( MessagePackExtendedTypeObject &result ) : bool
ReadSubtreeMessagePackExtendedTypeObjectAsync ( CancellationToken cancellationToken ) : Task>
ReadSubtreeNullableBoolean ( System.Boolean &result ) : bool
ReadSubtreeNullableBooleanAsync ( CancellationToken cancellationToken ) : Task>
ReadSubtreeNullableByte ( Byte &result ) : bool
ReadSubtreeNullableByteAsync ( CancellationToken cancellationToken ) : Task>
ReadSubtreeNullableDouble ( Double &result ) : bool
ReadSubtreeNullableDoubleAsync ( CancellationToken cancellationToken ) : Task>
ReadSubtreeNullableInt16 ( Int16 &result ) : bool
ReadSubtreeNullableInt16Async ( CancellationToken cancellationToken ) : Task>
ReadSubtreeNullableInt32 ( Int32 &result ) : bool
ReadSubtreeNullableInt32Async ( CancellationToken cancellationToken ) : Task>
ReadSubtreeNullableInt64 ( System.Int64 &result ) : bool
ReadSubtreeNullableInt64Async ( CancellationToken cancellationToken ) : Task>
ReadSubtreeNullableSByte ( SByte &result ) : bool
ReadSubtreeNullableSByteAsync ( CancellationToken cancellationToken ) : Task>
ReadSubtreeNullableSingle ( System.Single &result ) : bool
ReadSubtreeNullableSingleAsync ( CancellationToken cancellationToken ) : Task>
ReadSubtreeNullableUInt16 ( UInt16 &result ) : bool
ReadSubtreeNullableUInt16Async ( CancellationToken cancellationToken ) : Task>
ReadSubtreeNullableUInt32 ( UInt32 &result ) : bool
ReadSubtreeNullableUInt32Async ( CancellationToken cancellationToken ) : Task>
ReadSubtreeNullableUInt64 ( System.UInt64 &result ) : bool
ReadSubtreeNullableUInt64Async ( CancellationToken cancellationToken ) : Task>
ReadSubtreeObject ( bool isDeep, MessagePackObject &result ) : bool
ReadSubtreeObjectAsync ( bool isDeep, CancellationToken cancellationToken ) : Task>
ReadSubtreeSByte ( SByte &result ) : bool
ReadSubtreeSByteAsync ( CancellationToken cancellationToken ) : Task>
ReadSubtreeSingle ( Single &result ) : bool
ReadSubtreeSingleAsync ( CancellationToken cancellationToken ) : Task>
ReadSubtreeString ( String &result ) : bool
ReadSubtreeStringAsync ( CancellationToken cancellationToken ) : Task>
ReadSubtreeUInt16 ( UInt16 &result ) : bool
ReadSubtreeUInt16Async ( CancellationToken cancellationToken ) : Task>
ReadSubtreeUInt32 ( UInt32 &result ) : bool
ReadSubtreeUInt32Async ( CancellationToken cancellationToken ) : Task>
ReadSubtreeUInt64 ( UInt64 &result ) : bool
ReadSubtreeUInt64Async ( CancellationToken cancellationToken ) : Task>
ReadValue ( byte &header, long &integral, float &real32, double &real64 ) : ReadValueResult
ReadValueAsync ( CancellationToken cancellationToken ) : Task
SkipSubtreeItem ( ) : long?
SkipSubtreeItemAsync ( CancellationToken cancellationToken ) : Task
ThrowEofException ( ) : void
ThrowEofException ( long reading ) : void
ThrowTooLongLengthException ( long length, ReadValueResult type ) : void
ThrowTypeException ( Type type, byte header ) : void
ThrowUnassignedMessageTypeException ( int header ) : void
ThrowUnexpectedExtCodeException ( ReadValueResult type ) : void

Method Details

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

ItemsUnpacker() public method

public ItemsUnpacker ( System.Stream stream, PackerUnpackerStreamOptions streamOptions ) : System
stream System.Stream
streamOptions PackerUnpackerStreamOptions
return System

ReadArrayLength() public method

public ReadArrayLength ( System.Int64 &result ) : bool
result System.Int64
return bool

ReadArrayLengthAsync() public method

public ReadArrayLengthAsync ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
return Task>

ReadAsyncCore() protected method

protected ReadAsyncCore ( CancellationToken cancellationToken ) : Task
cancellationToken System.Threading.CancellationToken
return Task

ReadBinary() public method

public ReadBinary ( Byte &result ) : bool
result Byte
return bool

ReadBinaryAsync() public method

public ReadBinaryAsync ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
return Task>

ReadBoolean() public method

public ReadBoolean ( System.Boolean &result ) : bool
result System.Boolean
return bool

ReadBooleanAsync() public method

public ReadBooleanAsync ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
return Task>

ReadByte() public method

public ReadByte ( Byte &result ) : bool
result Byte
return bool

ReadByteAsync() public method

public ReadByteAsync ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
return Task>

ReadCore() protected method

protected ReadCore ( ) : bool
return bool

ReadDouble() public method

public ReadDouble ( Double &result ) : bool
result Double
return bool

ReadDoubleAsync() public method

public ReadDoubleAsync ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
return Task>

ReadInt16() public method

public ReadInt16 ( Int16 &result ) : bool
result System.Int16
return bool

ReadInt16Async() public method

public ReadInt16Async ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
return Task>

ReadInt32() public method

public ReadInt32 ( Int32 &result ) : bool
result System.Int32
return bool

ReadInt32Async() public method

public ReadInt32Async ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
return Task>

ReadInt64() public method

public ReadInt64 ( System.Int64 &result ) : bool
result System.Int64
return bool

ReadInt64Async() public method

public ReadInt64Async ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
return Task>

ReadMapLength() public method

public ReadMapLength ( System.Int64 &result ) : bool
result System.Int64
return bool

ReadMapLengthAsync() public method

public ReadMapLengthAsync ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
return Task>

ReadMessagePackExtendedTypeObject() public method

public ReadMessagePackExtendedTypeObject ( MessagePackExtendedTypeObject &result ) : bool
result MessagePackExtendedTypeObject
return bool

ReadMessagePackExtendedTypeObjectAsync() public method

public ReadMessagePackExtendedTypeObjectAsync ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
return Task>

ReadNullableBoolean() public method

public ReadNullableBoolean ( System.Boolean &result ) : bool
result System.Boolean
return bool

ReadNullableBooleanAsync() public method

public ReadNullableBooleanAsync ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
return Task>

ReadNullableByte() public method

public ReadNullableByte ( Byte &result ) : bool
result Byte
return bool

ReadNullableByteAsync() public method

public ReadNullableByteAsync ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
return Task>

ReadNullableDouble() public method

public ReadNullableDouble ( Double &result ) : bool
result Double
return bool

ReadNullableDoubleAsync() public method

public ReadNullableDoubleAsync ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
return Task>

ReadNullableInt16() public method

public ReadNullableInt16 ( Int16 &result ) : bool
result System.Int16
return bool

ReadNullableInt16Async() public method

public ReadNullableInt16Async ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
return Task>

ReadNullableInt32() public method

public ReadNullableInt32 ( Int32 &result ) : bool
result System.Int32
return bool

ReadNullableInt32Async() public method

public ReadNullableInt32Async ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
return Task>

ReadNullableInt64() public method

public ReadNullableInt64 ( System.Int64 &result ) : bool
result System.Int64
return bool

ReadNullableInt64Async() public method

public ReadNullableInt64Async ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
return Task>

ReadNullableSByte() public method

public ReadNullableSByte ( SByte &result ) : bool
result SByte
return bool

ReadNullableSByteAsync() public method

public ReadNullableSByteAsync ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
return Task>

ReadNullableSingle() public method

public ReadNullableSingle ( System.Single &result ) : bool
result System.Single
return bool

ReadNullableSingleAsync() public method

public ReadNullableSingleAsync ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
return Task>

ReadNullableUInt16() public method

public ReadNullableUInt16 ( UInt16 &result ) : bool
result System.UInt16
return bool

ReadNullableUInt16Async() public method

public ReadNullableUInt16Async ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
return Task>

ReadNullableUInt32() public method

public ReadNullableUInt32 ( UInt32 &result ) : bool
result System.UInt32
return bool

ReadNullableUInt32Async() public method

public ReadNullableUInt32Async ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
return Task>

ReadNullableUInt64() public method

public ReadNullableUInt64 ( System.UInt64 &result ) : bool
result System.UInt64
return bool

ReadNullableUInt64Async() public method

public ReadNullableUInt64Async ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
return Task>

ReadObject() public method

public ReadObject ( MessagePackObject &result ) : bool
result MessagePackObject
return bool

ReadObjectAsync() public method

public ReadObjectAsync ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
return Task>

ReadSByte() public method

public ReadSByte ( SByte &result ) : bool
result SByte
return bool

ReadSByteAsync() public method

public ReadSByteAsync ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
return Task>

ReadSingle() public method

public ReadSingle ( System.Single &result ) : bool
result System.Single
return bool

ReadSingleAsync() public method

public ReadSingleAsync ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
return Task>

ReadString() public method

public ReadString ( String &result ) : bool
result String
return bool

ReadStringAsync() public method

public ReadStringAsync ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
return Task>

ReadSubtreeCore() protected method

Starts unpacking of current subtree.
protected ReadSubtreeCore ( ) : Unpacker
return Unpacker

ReadUInt16() public method

public ReadUInt16 ( UInt16 &result ) : bool
result UInt16
return bool

ReadUInt16Async() public method

public ReadUInt16Async ( CancellationToken cancellationToken ) : Task>
cancellationToken CancellationToken
return Task>

ReadUInt32() public method

public ReadUInt32 ( UInt32 &result ) : bool
result UInt32
return bool

ReadUInt32Async() public method

public ReadUInt32Async ( CancellationToken cancellationToken ) : Task>
cancellationToken CancellationToken
return Task>

ReadUInt64() public method

public ReadUInt64 ( UInt64 &result ) : bool
result UInt64
return bool

ReadUInt64Async() public method

public ReadUInt64Async ( CancellationToken cancellationToken ) : Task>
cancellationToken CancellationToken
return Task>

SkipAsyncCore() protected method

protected SkipAsyncCore ( CancellationToken cancellationToken ) : Task
cancellationToken CancellationToken
return Task

SkipCore() protected method

protected SkipCore ( ) : long?
return long?