C# Класс Microsoft.Protocols.TestSuites.MS_OXCFXICS.FastTransferStream

Used for serializing or deserializing a fast transfer stream.
Наследование: System.IO.MemoryStream
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
GuidLength int

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

Метод Описание
BacktraceMarker ( ) : void

Backtracks the position with PidTagLength size.

BacktracePosition ( int count ) : void

Backtracks the position

FastTransferStream ( byte buffer, bool writable ) : System

Initializes a new instance of the FastTransferStream class.

ReadBlock ( int size ) : byte[]

Read bytes from stream, and advance the position.

ReadBlocks ( int totalSize, int blockSize ) : List

Read a list of blocks and advance the position.

ReadBoolean ( ) : ushort

Read a Boolean value from stream, and advance the position within the stream by 2

ReadCurrency ( ) : long

Read a currency value from stream, and advance the position within the stream by 8

ReadFloating32 ( ) : float

Read a float value from stream, and advance the position within the stream by 4

ReadFloating64 ( ) : double

Read a double value from stream, and advance the position within the stream by 8

ReadFloatingTime ( ) : double

Read a FloatingTime value from stream, and advance the position within the stream by 8

ReadGuid ( ) : System.Guid

Read a GUID value from stream, and advance the position.

ReadInt16 ( ) : short

Read a short value from stream, and advance the position within the stream by 2

ReadInt32 ( ) : int

Read an int value from stream, and advance the position within the stream by 4

ReadInt64 ( ) : long

Read a long value from stream, and advance the position within the stream by 8

ReadLengthBlock ( ) : byte[]>.Tuple

Read an int value and block and advance the position.

ReadLengthBlocks ( int totalLength ) : byte[]>>.List

Read a list of an int value and a block and advance the position.

ReadMarker ( ) : Markers

Read a Markers value from stream, and advance the position within the stream by 4

ReadMarker ( Markers desiredMarker ) : bool

Read a Markers from stream, compare it to the desired Marker.

ReadMetaProperty ( MetaProperties meta ) : bool

Read a MetaProperties value from stream, and advance the position within the stream by 4, compare it to the desired MetaProperties

ReadServerID ( ) : ServerID

Read a ServerID and advance the position.

ReadString ( ) : string

Read a string value from stream, and advance the position.

ReadString8 ( ) : string

Read a ASCII string value from stream, and advance the position.

ReadTime ( ) : ulong

Read a Time value from stream, and advance the position within the stream by 2

ReadUInt16 ( ) : ushort

Read a unsigned short integer value from stream, and advance the position within the stream by 2

ReadUInt32 ( ) : uint

Read a uint value from stream, and advance the position within the stream by 4

ReadUInt64 ( ) : ulong

Read the unsigned long integer value from stream, and advance the position within the stream by 8

ReadUInt8 ( ) : byte

Read a byte value from stream, and advance the position.

Verify ( byte val, int offset ) : bool

Indicate the byte value at the position plus an offset equals a specified byte

Verify ( uint val ) : bool

Indicate the uint value at the position equals a specified uint value.

Verify ( uint val, int offset ) : bool

Indicate the uint value at the position plus an offset equals a specified uint value.

Verify ( ushort val ) : bool

Indicate the unsigned short integer value at the position equals a specified unsigned short integer value.

VerifyErrorInfo ( int offset ) : bool

Indicate the MetaProperties at the position equals a specified PidTagFXErrorInfo

VerifyMarker ( ) : Markers

Get a Markers value from current position plus an offset and do not advance the position.

VerifyMarker ( int offset ) : Markers

Get a Markers value from current position plus an offset and do not advance the position.

VerifyMarker ( Markers marker ) : bool

Indicate the Markers at the position equals a specified Markers.

VerifyMarker ( Markers marker, int offset ) : bool

Indicate the Markers at the current position plus an offset equals a specified Markers

VerifyMetaProperty ( MetaProperties meta ) : bool

Indicate the MetaProperties at the position equals a specified MetaProperties

VerifyUInt16 ( ) : ushort

Get an unsigned short integer value for current position plus an offset and does not advance the position.

VerifyUInt16 ( int offset ) : ushort

Get an unsigned short integer value for current position plus an offset and do not advance the position.

VerifyUInt32 ( ) : uint

Get a uint value and do not advance the position.

VerifyUInt32 ( int offset ) : uint

Get a uint value for current position plus an offset and do not advance the position.

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

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

Backtracks the position with PidTagLength size.
public BacktraceMarker ( ) : void
Результат void

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

Backtracks the position
public BacktracePosition ( int count ) : void
count int An int value
Результат void

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

Initializes a new instance of the FastTransferStream class.
public FastTransferStream ( byte buffer, bool writable ) : System
buffer byte A bytes array.
writable bool Whether the stream supports writing.
Результат System

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

Read bytes from stream, and advance the position.
public ReadBlock ( int size ) : byte[]
size int The size of bytes
Результат byte[]

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

Read a list of blocks and advance the position.
public ReadBlocks ( int totalSize, int blockSize ) : List
totalSize int The total number of bytes to read
blockSize int The size of each block
Результат List

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

Read a Boolean value from stream, and advance the position within the stream by 2
public ReadBoolean ( ) : ushort
Результат ushort

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

Read a currency value from stream, and advance the position within the stream by 8
public ReadCurrency ( ) : long
Результат long

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

Read a float value from stream, and advance the position within the stream by 4
public ReadFloating32 ( ) : float
Результат float

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

Read a double value from stream, and advance the position within the stream by 8
public ReadFloating64 ( ) : double
Результат double

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

Read a FloatingTime value from stream, and advance the position within the stream by 8
public ReadFloatingTime ( ) : double
Результат double

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

Read a GUID value from stream, and advance the position.
public ReadGuid ( ) : System.Guid
Результат System.Guid

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

Read a short value from stream, and advance the position within the stream by 2
public ReadInt16 ( ) : short
Результат short

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

Read an int value from stream, and advance the position within the stream by 4
public ReadInt32 ( ) : int
Результат int

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

Read a long value from stream, and advance the position within the stream by 8
public ReadInt64 ( ) : long
Результат long

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

Read an int value and block and advance the position.
public ReadLengthBlock ( ) : byte[]>.Tuple
Результат byte[]>.Tuple

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

Read a list of an int value and a block and advance the position.
public ReadLengthBlocks ( int totalLength ) : byte[]>>.List
totalLength int The number of bytes to read
Результат byte[]>>.List

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

Read a Markers value from stream, and advance the position within the stream by 4
public ReadMarker ( ) : Markers
Результат Markers

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

Read a Markers from stream, compare it to the desired Marker.
public ReadMarker ( Markers desiredMarker ) : bool
desiredMarker Markers The desired Markers.
Результат bool

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

Read a MetaProperties value from stream, and advance the position within the stream by 4, compare it to the desired MetaProperties
public ReadMetaProperty ( MetaProperties meta ) : bool
meta MetaProperties The desired Markers
Результат bool

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

Read a ServerID and advance the position.
public ReadServerID ( ) : ServerID
Результат ServerID

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

Read a string value from stream, and advance the position.
public ReadString ( ) : string
Результат string

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

Read a ASCII string value from stream, and advance the position.
public ReadString8 ( ) : string
Результат string

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

Read a Time value from stream, and advance the position within the stream by 2
public ReadTime ( ) : ulong
Результат ulong

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

Read a unsigned short integer value from stream, and advance the position within the stream by 2
public ReadUInt16 ( ) : ushort
Результат ushort

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

Read a uint value from stream, and advance the position within the stream by 4
public ReadUInt32 ( ) : uint
Результат uint

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

Read the unsigned long integer value from stream, and advance the position within the stream by 8
public ReadUInt64 ( ) : ulong
Результат ulong

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

Read a byte value from stream, and advance the position.
public ReadUInt8 ( ) : byte
Результат byte

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

Indicate the byte value at the position plus an offset equals a specified byte
public Verify ( byte val, int offset ) : bool
val byte A uint value
offset int An int value
Результат bool

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

Indicate the uint value at the position equals a specified uint value.
public Verify ( uint val ) : bool
val uint A uint value.
Результат bool

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

Indicate the uint value at the position plus an offset equals a specified uint value.
public Verify ( uint val, int offset ) : bool
val uint A uint value
offset int An int value
Результат bool

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

Indicate the unsigned short integer value at the position equals a specified unsigned short integer value.
public Verify ( ushort val ) : bool
val ushort An unsigned short integer value
Результат bool

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

Indicate the MetaProperties at the position equals a specified PidTagFXErrorInfo
public VerifyErrorInfo ( int offset ) : bool
offset int An int value
Результат bool

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

Get a Markers value from current position plus an offset and do not advance the position.
public VerifyMarker ( ) : Markers
Результат Markers

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

Get a Markers value from current position plus an offset and do not advance the position.
public VerifyMarker ( int offset ) : Markers
offset int An int value
Результат Markers

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

Indicate the Markers at the position equals a specified Markers.
public VerifyMarker ( Markers marker ) : bool
marker Markers A Markers value
Результат bool

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

Indicate the Markers at the current position plus an offset equals a specified Markers
public VerifyMarker ( Markers marker, int offset ) : bool
marker Markers A Markers to be verified
offset int An int value
Результат bool

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

Indicate the MetaProperties at the position equals a specified MetaProperties
public VerifyMetaProperty ( MetaProperties meta ) : bool
meta MetaProperties A MetaProperties value
Результат bool

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

Get an unsigned short integer value for current position plus an offset and does not advance the position.
public VerifyUInt16 ( ) : ushort
Результат ushort

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

Get an unsigned short integer value for current position plus an offset and do not advance the position.
public VerifyUInt16 ( int offset ) : ushort
offset int An int value
Результат ushort

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

Get a uint value and do not advance the position.
public VerifyUInt32 ( ) : uint
Результат uint

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

Get a uint value for current position plus an offset and do not advance the position.
public VerifyUInt32 ( int offset ) : uint
offset int An int value
Результат uint

Описание свойств

GuidLength публичное статическое свойство

The length of a GUID structure.
public static int GuidLength
Результат int