C# Class NScumm.Core.BitStream

Datei anzeigen Open project: scemino/nscumm

Public Methods

Method Description
AddBit ( uint &x, int n ) : void

Add a bit to the value x, making it an n+1-bit value.

The current value is shifted and the bit is added to the appropriate place, dependant on the stream's bitorder.

BitStream ( Stream stream, BitStreamType type, bool isLittleEdian, bool isMsb2Lsb ) : System
Create8Lsb ( Stream stream ) : BitStream
GetBit ( ) : uint
GetBits ( int n ) : uint
PeekBits ( uint n ) : uint
ReadData ( ) : uint
Skip ( uint n ) : void

Private Methods

Method Description
ReadValue ( ) : void

Method Details

AddBit() public method

Add a bit to the value x, making it an n+1-bit value.
The current value is shifted and the bit is added to the appropriate place, dependant on the stream's bitorder.
public AddBit ( uint &x, int n ) : void
x uint
n int
return void

BitStream() public method

public BitStream ( Stream stream, BitStreamType type, bool isLittleEdian, bool isMsb2Lsb ) : System
stream Stream
type BitStreamType
isLittleEdian bool
isMsb2Lsb bool
return System

Create8Lsb() public static method

public static Create8Lsb ( Stream stream ) : BitStream
stream Stream
return BitStream

GetBit() public method

public GetBit ( ) : uint
return uint

GetBits() public method

public GetBits ( int n ) : uint
n int
return uint

PeekBits() public method

public PeekBits ( uint n ) : uint
n uint
return uint

ReadData() public method

public ReadData ( ) : uint
return uint

Skip() public method

public Skip ( uint n ) : void
n uint
return void