C# Class MsgPack.ItemsUnpacker

Afficher le fichier Open project: msgpack/msgpack-cli Class Usage Examples

Private Properties

Свойство 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

Méthodes publiques

Méthode 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>

Méthodes protégées

Méthode 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

Méthode 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 méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

ItemsUnpacker() public méthode

public ItemsUnpacker ( System.Stream stream, PackerUnpackerStreamOptions streamOptions ) : System
stream System.Stream
streamOptions PackerUnpackerStreamOptions
Résultat System

ReadArrayLength() public méthode

public ReadArrayLength ( System.Int64 &result ) : bool
result System.Int64
Résultat bool

ReadArrayLengthAsync() public méthode

public ReadArrayLengthAsync ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
Résultat Task>

ReadAsyncCore() protected méthode

protected ReadAsyncCore ( CancellationToken cancellationToken ) : Task
cancellationToken System.Threading.CancellationToken
Résultat Task

ReadBinary() public méthode

public ReadBinary ( Byte &result ) : bool
result Byte
Résultat bool

ReadBinaryAsync() public méthode

public ReadBinaryAsync ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
Résultat Task>

ReadBoolean() public méthode

public ReadBoolean ( System.Boolean &result ) : bool
result System.Boolean
Résultat bool

ReadBooleanAsync() public méthode

public ReadBooleanAsync ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
Résultat Task>

ReadByte() public méthode

public ReadByte ( Byte &result ) : bool
result Byte
Résultat bool

ReadByteAsync() public méthode

public ReadByteAsync ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
Résultat Task>

ReadCore() protected méthode

protected ReadCore ( ) : bool
Résultat bool

ReadDouble() public méthode

public ReadDouble ( Double &result ) : bool
result Double
Résultat bool

ReadDoubleAsync() public méthode

public ReadDoubleAsync ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
Résultat Task>

ReadInt16() public méthode

public ReadInt16 ( Int16 &result ) : bool
result System.Int16
Résultat bool

ReadInt16Async() public méthode

public ReadInt16Async ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
Résultat Task>

ReadInt32() public méthode

public ReadInt32 ( Int32 &result ) : bool
result System.Int32
Résultat bool

ReadInt32Async() public méthode

public ReadInt32Async ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
Résultat Task>

ReadInt64() public méthode

public ReadInt64 ( System.Int64 &result ) : bool
result System.Int64
Résultat bool

ReadInt64Async() public méthode

public ReadInt64Async ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
Résultat Task>

ReadMapLength() public méthode

public ReadMapLength ( System.Int64 &result ) : bool
result System.Int64
Résultat bool

ReadMapLengthAsync() public méthode

public ReadMapLengthAsync ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
Résultat Task>

ReadMessagePackExtendedTypeObject() public méthode

public ReadMessagePackExtendedTypeObject ( MessagePackExtendedTypeObject &result ) : bool
result MessagePackExtendedTypeObject
Résultat bool

ReadMessagePackExtendedTypeObjectAsync() public méthode

public ReadMessagePackExtendedTypeObjectAsync ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
Résultat Task>

ReadNullableBoolean() public méthode

public ReadNullableBoolean ( System.Boolean &result ) : bool
result System.Boolean
Résultat bool

ReadNullableBooleanAsync() public méthode

public ReadNullableBooleanAsync ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
Résultat Task>

ReadNullableByte() public méthode

public ReadNullableByte ( Byte &result ) : bool
result Byte
Résultat bool

ReadNullableByteAsync() public méthode

public ReadNullableByteAsync ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
Résultat Task>

ReadNullableDouble() public méthode

public ReadNullableDouble ( Double &result ) : bool
result Double
Résultat bool

ReadNullableDoubleAsync() public méthode

public ReadNullableDoubleAsync ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
Résultat Task>

ReadNullableInt16() public méthode

public ReadNullableInt16 ( Int16 &result ) : bool
result System.Int16
Résultat bool

ReadNullableInt16Async() public méthode

public ReadNullableInt16Async ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
Résultat Task>

ReadNullableInt32() public méthode

public ReadNullableInt32 ( Int32 &result ) : bool
result System.Int32
Résultat bool

ReadNullableInt32Async() public méthode

public ReadNullableInt32Async ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
Résultat Task>

ReadNullableInt64() public méthode

public ReadNullableInt64 ( System.Int64 &result ) : bool
result System.Int64
Résultat bool

ReadNullableInt64Async() public méthode

public ReadNullableInt64Async ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
Résultat Task>

ReadNullableSByte() public méthode

public ReadNullableSByte ( SByte &result ) : bool
result SByte
Résultat bool

ReadNullableSByteAsync() public méthode

public ReadNullableSByteAsync ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
Résultat Task>

ReadNullableSingle() public méthode

public ReadNullableSingle ( System.Single &result ) : bool
result System.Single
Résultat bool

ReadNullableSingleAsync() public méthode

public ReadNullableSingleAsync ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
Résultat Task>

ReadNullableUInt16() public méthode

public ReadNullableUInt16 ( UInt16 &result ) : bool
result System.UInt16
Résultat bool

ReadNullableUInt16Async() public méthode

public ReadNullableUInt16Async ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
Résultat Task>

ReadNullableUInt32() public méthode

public ReadNullableUInt32 ( UInt32 &result ) : bool
result System.UInt32
Résultat bool

ReadNullableUInt32Async() public méthode

public ReadNullableUInt32Async ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
Résultat Task>

ReadNullableUInt64() public méthode

public ReadNullableUInt64 ( System.UInt64 &result ) : bool
result System.UInt64
Résultat bool

ReadNullableUInt64Async() public méthode

public ReadNullableUInt64Async ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
Résultat Task>

ReadObject() public méthode

public ReadObject ( MessagePackObject &result ) : bool
result MessagePackObject
Résultat bool

ReadObjectAsync() public méthode

public ReadObjectAsync ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
Résultat Task>

ReadSByte() public méthode

public ReadSByte ( SByte &result ) : bool
result SByte
Résultat bool

ReadSByteAsync() public méthode

public ReadSByteAsync ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
Résultat Task>

ReadSingle() public méthode

public ReadSingle ( System.Single &result ) : bool
result System.Single
Résultat bool

ReadSingleAsync() public méthode

public ReadSingleAsync ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
Résultat Task>

ReadString() public méthode

public ReadString ( String &result ) : bool
result String
Résultat bool

ReadStringAsync() public méthode

public ReadStringAsync ( CancellationToken cancellationToken ) : Task>
cancellationToken System.Threading.CancellationToken
Résultat Task>

ReadSubtreeCore() protected méthode

Starts unpacking of current subtree.
protected ReadSubtreeCore ( ) : Unpacker
Résultat Unpacker

ReadUInt16() public méthode

public ReadUInt16 ( UInt16 &result ) : bool
result UInt16
Résultat bool

ReadUInt16Async() public méthode

public ReadUInt16Async ( CancellationToken cancellationToken ) : Task>
cancellationToken CancellationToken
Résultat Task>

ReadUInt32() public méthode

public ReadUInt32 ( UInt32 &result ) : bool
result UInt32
Résultat bool

ReadUInt32Async() public méthode

public ReadUInt32Async ( CancellationToken cancellationToken ) : Task>
cancellationToken CancellationToken
Résultat Task>

ReadUInt64() public méthode

public ReadUInt64 ( UInt64 &result ) : bool
result UInt64
Résultat bool

ReadUInt64Async() public méthode

public ReadUInt64Async ( CancellationToken cancellationToken ) : Task>
cancellationToken CancellationToken
Résultat Task>

SkipAsyncCore() protected méthode

protected SkipAsyncCore ( CancellationToken cancellationToken ) : Task
cancellationToken CancellationToken
Résultat Task

SkipCore() protected méthode

protected SkipCore ( ) : long?
Résultat long?