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.
Afficher le fichier Open project: sgraf812/crystalmpq Class Usage Examples

Méthodes publiques

Méthode Description
Dispose ( ) : void
GetBit ( ) : int
GetBits ( int count ) : int
GetByte ( ) : byte

Private Methods

Méthode 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 méthode

public Dispose ( ) : void
Résultat void

GetBit() public méthode

public GetBit ( ) : int
Résultat int

GetBits() public méthode

public GetBits ( int count ) : int
count int
Résultat int

GetByte() public méthode

public GetByte ( ) : byte
Résultat byte