C# Class HotChai.Serialization.PortableBinary.PortableBinaryObjectReader

Reads an object using the Portable Binary Object Notation format.
Inheritance: ObjectReader
Afficher le fichier Open project: hotchai/serialize.net

Méthodes publiques

Méthode Description
PortableBinaryObjectReader ( Stream stream ) : System

Initializes a new instance of the PortableBinaryObjectReader using the specified input stream.

Méthodes protégées

Méthode Description
PeekValueType ( ) : MemberValueType

Returns the MemberType of the value at the current reader position, without advancing the reader.

ReadEndArrayToken ( ) : void

Reads the end of the serialized array at the current position.

ReadEndObjectToken ( ) : void

Reads the end of the serialized object at the current position.

ReadNextObjectMemberKey ( ) : bool

Reads the next serialized object member key at the current position.

ReadPrimitiveValueAsBoolean ( ) : bool

Reads the current value as a Boolean type.

ReadPrimitiveValueAsBytes ( int quota ) : byte[]

Reads the current value as an array of Byte type.

ReadPrimitiveValueAsDouble ( ) : double

Reads the current value as a Double type.

ReadPrimitiveValueAsInt32 ( ) : int

Reads the current value as an Int32 type.

ReadPrimitiveValueAsInt64 ( ) : long

Reads the current value as an Int64 type.

ReadPrimitiveValueAsSingle ( ) : float

Reads the current value as a Single type.

ReadPrimitiveValueAsString ( int quota ) : string

Reads the current value as a String type.

ReadPrimitiveValueAsUInt32 ( ) : uint

Reads the current value as a UInt32 type.

ReadPrimitiveValueAsUInt64 ( ) : ulong

Reads the current value as a UInt64 type.

ReadStartArrayToken ( ) : bool

Reads the start of a serialized array at the current position.

ReadStartObjectToken ( ) : bool

Reads the start of a serialized object at the current position.

ReadToNextArrayValue ( ) : bool

Advances the reader to the next array value following the current position.

SkipPrimitiveValue ( ) : void

Skips the primitive value at the current reader position.

Private Methods

Méthode Description
PeekPackedInt ( ) : int
ReadNullablePrimitiveLength ( int quota ) : int
ReadPackedInt ( ) : int

Big-endian variable-length quantity (VLQ) encoding

See http://en.wikipedia.org/wiki/Variable-length_quantity.

ReadPrimitiveLength ( int quota ) : int
TrySkipBytes ( int count ) : bool

Method Details

PeekValueType() protected méthode

Returns the MemberType of the value at the current reader position, without advancing the reader.
protected PeekValueType ( ) : MemberValueType
Résultat MemberValueType

PortableBinaryObjectReader() public méthode

Initializes a new instance of the PortableBinaryObjectReader using the specified input stream.
public PortableBinaryObjectReader ( Stream stream ) : System
stream Stream The input stream.
Résultat System

ReadEndArrayToken() protected méthode

Reads the end of the serialized array at the current position.
protected ReadEndArrayToken ( ) : void
Résultat void

ReadEndObjectToken() protected méthode

Reads the end of the serialized object at the current position.
protected ReadEndObjectToken ( ) : void
Résultat void

ReadNextObjectMemberKey() protected méthode

Reads the next serialized object member key at the current position.
protected ReadNextObjectMemberKey ( ) : bool
Résultat bool

ReadPrimitiveValueAsBoolean() protected méthode

Reads the current value as a Boolean type.
protected ReadPrimitiveValueAsBoolean ( ) : bool
Résultat bool

ReadPrimitiveValueAsBytes() protected méthode

Reads the current value as an array of Byte type.
protected ReadPrimitiveValueAsBytes ( int quota ) : byte[]
quota int
Résultat byte[]

ReadPrimitiveValueAsDouble() protected méthode

Reads the current value as a Double type.
protected ReadPrimitiveValueAsDouble ( ) : double
Résultat double

ReadPrimitiveValueAsInt32() protected méthode

Reads the current value as an Int32 type.
protected ReadPrimitiveValueAsInt32 ( ) : int
Résultat int

ReadPrimitiveValueAsInt64() protected méthode

Reads the current value as an Int64 type.
protected ReadPrimitiveValueAsInt64 ( ) : long
Résultat long

ReadPrimitiveValueAsSingle() protected méthode

Reads the current value as a Single type.
protected ReadPrimitiveValueAsSingle ( ) : float
Résultat float

ReadPrimitiveValueAsString() protected méthode

Reads the current value as a String type.
protected ReadPrimitiveValueAsString ( int quota ) : string
quota int
Résultat string

ReadPrimitiveValueAsUInt32() protected méthode

Reads the current value as a UInt32 type.
protected ReadPrimitiveValueAsUInt32 ( ) : uint
Résultat uint

ReadPrimitiveValueAsUInt64() protected méthode

Reads the current value as a UInt64 type.
protected ReadPrimitiveValueAsUInt64 ( ) : ulong
Résultat ulong

ReadStartArrayToken() protected méthode

Reads the start of a serialized array at the current position.
protected ReadStartArrayToken ( ) : bool
Résultat bool

ReadStartObjectToken() protected méthode

Reads the start of a serialized object at the current position.
protected ReadStartObjectToken ( ) : bool
Résultat bool

ReadToNextArrayValue() protected méthode

Advances the reader to the next array value following the current position.
protected ReadToNextArrayValue ( ) : bool
Résultat bool

SkipPrimitiveValue() protected méthode

Skips the primitive value at the current reader position.
protected SkipPrimitiveValue ( ) : void
Résultat void