C# Class Microsoft.Protocols.TestSuites.MS_OXCFXICS.GLOBSET

Inheritance: SerializableBase
Exibir arquivo Open project: OfficeDev/Interop-TestSuites Class Usage Examples

Public Methods

Method Description
Deserialize ( Stream stream, int size ) : int

Deserialize fields in this class from a stream.

GetGLOBCNTList ( List rangeList ) : List

Get GLOBCNTs from a GLOBCNTRange list.

GetGLOBCNTRange ( List globcntList ) : List

Get GLOBCNTRanges from a GLOBCNT list.

Serialize ( Stream stream ) : int

Serialize fields to a stream.

Private Methods

Method Description
Bitmask ( Stream stream, byte startValue, byte bitmask ) : int

Writes a bitmask command to a stream.

Compress ( int index ) : int

Compresses a GLOBCNTRange to the stream.

Compress ( int startIndex, int endIndex ) : int

Compresses GLOBCNTRanges to the stream.

CompressBitmask ( int startIndex, int endIndex ) : int

Compresses GLOBCNTRanges in the GLOBCNTRange list to as a bitmask command.

CompressLastByte ( int startIndex, int endIndex ) : int

Compress the last byte(6th) of GLOBCNTRanges.

CompressRange ( int index ) : int

Compresses a GLOBCNTRange in the GLOBCNTRange list to as a bitmask command.

CompressSingleton ( int index ) : int

Compresses a singleton GLOBCNTRange.

End ( Stream stream ) : int

Writes an end command to a stream.

FromBitmask ( byte commonBytes, byte startValue, byte bitmask ) : List

Deserializes a list of GLOBCNTRanges from a bitmask command.

FromPush ( byte comonBytes, byte pushedBytes ) : GLOBCNTRange

Deserializes a GLOBCNTRange from a push command.

FromRange ( byte comonBytes, byte lowBytes, byte highBytes ) : GLOBCNTRange

Deserializes a GLOBCNTRange from a range command.

HighOrderCommonBytes ( int startIndex, int endIndex, int byteIndex, int &firstDiffIndex ) : byte[]

Gets high order command bytes in the GLOBCNTRange list.

Pop ( Stream stream ) : int

Writes a pop command to a stream.

Push ( Stream stream, byte values ) : int

Writes a push command.

Range ( Stream stream, byte lowValue, byte highValue ) : int

Writes a range command to a stream.

ReadBitmaskValue ( byte &startingValue, byte &bitmask ) : int

Reads a bitmask command from the stream.

ReadByte ( ) : byte

Reads a byte from the stream.

ReadOperation ( ) : System.Operation

Reads an operation byte from a stream.

ReadPushedValue ( int size, byte &commonBytes ) : int

Reads a push command from the stream.

ReadRangeValue ( byte &lowValue, byte &highValue ) : int

Reads a range command from the stream.

Verify ( bool condition ) : void

Verifies a condition.

Method Details

Deserialize() public method

Deserialize fields in this class from a stream.
public Deserialize ( Stream stream, int size ) : int
stream Stream Stream contains a serialized instance of this class.
size int How many bytes can read if -1, no limitation.MUST be -1.
return int

GetGLOBCNTList() public static method

Get GLOBCNTs from a GLOBCNTRange list.
public static GetGLOBCNTList ( List rangeList ) : List
rangeList List A GLOBCNTRange list.
return List

GetGLOBCNTRange() public static method

Get GLOBCNTRanges from a GLOBCNT list.
public static GetGLOBCNTRange ( List globcntList ) : List
globcntList List A GLOBCNT list.
return List

Serialize() public method

Serialize fields to a stream.
public Serialize ( Stream stream ) : int
stream Stream The stream where serialized instance will be wrote.
return int