C# Класс NScumm.Core.BitStream

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
ReadValue ( ) : void

Описание методов

AddBit() публичный Метод

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
Результат void

BitStream() публичный Метод

public BitStream ( Stream stream, BitStreamType type, bool isLittleEdian, bool isMsb2Lsb ) : System
stream Stream
type BitStreamType
isLittleEdian bool
isMsb2Lsb bool
Результат System

Create8Lsb() публичный статический Метод

public static Create8Lsb ( Stream stream ) : BitStream
stream Stream
Результат BitStream

GetBit() публичный Метод

public GetBit ( ) : uint
Результат uint

GetBits() публичный Метод

public GetBits ( int n ) : uint
n int
Результат uint

PeekBits() публичный Метод

public PeekBits ( uint n ) : uint
n uint
Результат uint

ReadData() публичный Метод

public ReadData ( ) : uint
Результат uint

Skip() публичный Метод

public Skip ( uint n ) : void
n uint
Результат void