C# Class MAPIInspector.Parsers.FastTransferStream

Used for Parsing a fast transfer stream.
Inheritance: System.IO.MemoryStream
Show file Open project: OfficeDev/Office-Inspectors-for-Fiddler Class Usage Examples

Public Properties

Property Type Description
GuidLength int

Public Methods

Method Description
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.

Method Details

FastTransferStream() public method

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.
return System

ReadBlock() public method

Read bytes from stream, and advance the position.
public ReadBlock ( int size ) : byte[]
size int The size of bytes
return byte[]

ReadBlocks() public method

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
return byte[][]

ReadBoolean() public method

Read a Boolean value from stream, and advance the position within the stream by 2
public ReadBoolean ( ) : ushort
return ushort

ReadByte() public method

Read a byte value from stream and advance the position within the stream by 1
public ReadByte ( ) : byte
return byte

ReadCurrency() public method

Read a currency value from stream,and advance the position within the stream by 8
public ReadCurrency ( ) : long
return long

ReadFloating32() public method

Read a float value from stream, and advance the position within the stream by 4
public ReadFloating32 ( ) : float
return float

ReadFloating64() public method

Read a double value from stream,and advance the position within the stream by 8
public ReadFloating64 ( ) : double
return double

ReadFloatingTime() public method

Read a FloatingTime value from stream, and advance the position within the stream by 8
public ReadFloatingTime ( ) : double
return double

ReadGuid() public method

Read a GUID value from stream, and advance the position.
public ReadGuid ( ) : System.Guid
return System.Guid

ReadInt16() public method

Read a short value from stream,and advance the position within the stream by 2
public ReadInt16 ( ) : short
return short

ReadInt32() public method

Read an int value from stream,and advance the position within the stream by 4
public ReadInt32 ( ) : int
return int

ReadInt64() public method

Read a long value from stream,and advance the position within the stream by 8
public ReadInt64 ( ) : long
return long

ReadLengthBlock() public method

Read LengthOfBlock and advance the position.
public ReadLengthBlock ( ) : LengthOfBlock
return LengthOfBlock

ReadLengthBlocks() public method

Read a list of LengthOfBlock and advance the position.
public ReadLengthBlocks ( int totalLength ) : MAPIInspector.Parsers.LengthOfBlock[]
totalLength int The number of bytes to read
return MAPIInspector.Parsers.LengthOfBlock[]

ReadMarker() public method

Read a Markers value from stream,and advance the position within the stream by 4
public ReadMarker ( ) : Markers
return Markers

ReadTime() public method

Read a Time value from stream,and advance the position within the stream by 2
public ReadTime ( ) : ulong
return ulong

ReadUInt16() public method

Read a unsigned short integer value from stream,and advance the position within the stream by 2
public ReadUInt16 ( ) : ushort
return ushort

ReadUInt32() public method

Read a uint value from stream,and advance the position within the stream by 4
public ReadUInt32 ( ) : uint
return uint

ReadUInt64() public method

Read the unsigned long integer value from stream, and advance the position within the stream by 8
public ReadUInt64 ( ) : ulong
return ulong

Verify() public method

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
return bool

Verify() public method

Indicate the uint value at the position equals a specified uint value.
public Verify ( uint val ) : bool
val uint A uint value.
return bool

Verify() public method

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
return bool

VerifyMarker() public method

Indicate the Markers at the position equals a specified Markers.
public VerifyMarker ( Markers marker ) : bool
marker Markers A Markers value
return bool

VerifyMarker() public method

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
return bool

VerifyMetaProperty() public method

Indicate the MetaProperties at the position equals a specified MetaProperties
public VerifyMetaProperty ( MetaProperties meta ) : bool
meta MetaProperties A MetaProperties value
return bool

VerifyUInt16() public method

Get an unsigned short integer value for current position plus an offset and does not advance the position.
public VerifyUInt16 ( ) : ushort
return ushort

VerifyUInt16() public method

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
return ushort

VerifyUInt32() public method

Get a uint value and do not advance the position.
public VerifyUInt32 ( ) : uint
return uint

Property Details

GuidLength public static property

public static int GuidLength
return int