C# Класс HotChai.Serialization.PortableBinary.PortableBinaryObjectReader

Reads an object using the Portable Binary Object Notation format.
Наследование: ObjectReader
Показать файл Открыть проект

Открытые методы

Метод Описание
PortableBinaryObjectReader ( Stream stream ) : System

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

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

PeekValueType() защищенный Метод

Returns the MemberType of the value at the current reader position, without advancing the reader.
protected PeekValueType ( ) : MemberValueType
Результат MemberValueType

PortableBinaryObjectReader() публичный Метод

Initializes a new instance of the PortableBinaryObjectReader using the specified input stream.
public PortableBinaryObjectReader ( Stream stream ) : System
stream Stream The input stream.
Результат System

ReadEndArrayToken() защищенный Метод

Reads the end of the serialized array at the current position.
protected ReadEndArrayToken ( ) : void
Результат void

ReadEndObjectToken() защищенный Метод

Reads the end of the serialized object at the current position.
protected ReadEndObjectToken ( ) : void
Результат void

ReadNextObjectMemberKey() защищенный Метод

Reads the next serialized object member key at the current position.
protected ReadNextObjectMemberKey ( ) : bool
Результат bool

ReadPrimitiveValueAsBoolean() защищенный Метод

Reads the current value as a Boolean type.
protected ReadPrimitiveValueAsBoolean ( ) : bool
Результат bool

ReadPrimitiveValueAsBytes() защищенный Метод

Reads the current value as an array of Byte type.
protected ReadPrimitiveValueAsBytes ( int quota ) : byte[]
quota int
Результат byte[]

ReadPrimitiveValueAsDouble() защищенный Метод

Reads the current value as a Double type.
protected ReadPrimitiveValueAsDouble ( ) : double
Результат double

ReadPrimitiveValueAsInt32() защищенный Метод

Reads the current value as an Int32 type.
protected ReadPrimitiveValueAsInt32 ( ) : int
Результат int

ReadPrimitiveValueAsInt64() защищенный Метод

Reads the current value as an Int64 type.
protected ReadPrimitiveValueAsInt64 ( ) : long
Результат long

ReadPrimitiveValueAsSingle() защищенный Метод

Reads the current value as a Single type.
protected ReadPrimitiveValueAsSingle ( ) : float
Результат float

ReadPrimitiveValueAsString() защищенный Метод

Reads the current value as a String type.
protected ReadPrimitiveValueAsString ( int quota ) : string
quota int
Результат string

ReadPrimitiveValueAsUInt32() защищенный Метод

Reads the current value as a UInt32 type.
protected ReadPrimitiveValueAsUInt32 ( ) : uint
Результат uint

ReadPrimitiveValueAsUInt64() защищенный Метод

Reads the current value as a UInt64 type.
protected ReadPrimitiveValueAsUInt64 ( ) : ulong
Результат ulong

ReadStartArrayToken() защищенный Метод

Reads the start of a serialized array at the current position.
protected ReadStartArrayToken ( ) : bool
Результат bool

ReadStartObjectToken() защищенный Метод

Reads the start of a serialized object at the current position.
protected ReadStartObjectToken ( ) : bool
Результат bool

ReadToNextArrayValue() защищенный Метод

Advances the reader to the next array value following the current position.
protected ReadToNextArrayValue ( ) : bool
Результат bool

SkipPrimitiveValue() защищенный Метод

Skips the primitive value at the current reader position.
protected SkipPrimitiveValue ( ) : void
Результат void