C# Класс MAPIInspector.Parsers.FastTransferStream

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

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

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

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

Метод Описание
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 ) : byte[][]

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

ReadByte ( ) : byte

Read a byte value from stream and advance the position within the stream by 1

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 ( ) : LengthOfBlock

Read LengthOfBlock and advance the position.

ReadLengthBlocks ( int totalLength ) : MAPIInspector.Parsers.LengthOfBlock[]

Read a list of LengthOfBlock and advance the position.

ReadMarker ( ) : Markers

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

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

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.

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 offsetequals 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.

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

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 ) : byte[][]
totalSize int The total number of bytes to read
blockSize int The size of each block
Результат byte[][]

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

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

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

Read a byte value from stream and advance the position within the stream by 1
public ReadByte ( ) : byte
Результат byte

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 LengthOfBlock and advance the position.
public ReadLengthBlock ( ) : LengthOfBlock
Результат LengthOfBlock

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

Read a list of LengthOfBlock and advance the position.
public ReadLengthBlocks ( int totalLength ) : MAPIInspector.Parsers.LengthOfBlock[]
totalLength int The number of bytes to read
Результат MAPIInspector.Parsers.LengthOfBlock[]

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

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

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

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

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 offsetequals 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

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

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

public static int GuidLength
Результат int