C# Class CrystalMpq.BitBuffer

Represents a bit buffer.
This structure is designed for internal use in CrystalMpq. Incorrect usage of the structure will lead to bugs or even worse, memory leaks. The structure shall always be initialized using this constructor. Once created, there shall never be more than one living copy of the structure. The structure shall always be passed as a reference parameter and never as a value parameter. Once the structure have been used for its purposes, it shall be released using the Dispose method. After the structure has been disposed, the instance shall never be used again.
Mostra file Open project: sgraf812/crystalmpq Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
GetBit ( ) : int
GetBits ( int count ) : int
GetByte ( ) : byte

Private Methods

Method Description
BitBuffer ( byte buffer, int index, int count ) : System

Initializes a new instance of the BitBuffer struct.

The structure shall always be initialized using this constructor.

Method Details

Dispose() public method

public Dispose ( ) : void
return void

GetBit() public method

public GetBit ( ) : int
return int

GetBits() public method

public GetBits ( int count ) : int
count int
return int

GetByte() public method

public GetByte ( ) : byte
return byte