C# Class javazoom.jl.decoder.BitReserve

Implementation of Bit Reservoir for Layer III.

The implementation stores single bits as a word in the buffer. If a bit is set, the corresponding word in the buffer will be non-zero. If a bit is clear, the corresponding word is zero. Although this may seem waseful, this can be a factor of two quicker than packing 8 bits to a byte and extracting.

Datei anzeigen Open project: RHY3756547/FreeSO Class Usage Examples

Public Methods

Method Description
hget1bit ( ) : int

Returns next bit from reserve.

hgetbits ( int N ) : int

Read a number bits from the bit stream.

hputbuf ( int val ) : void

Write 8 bits into the bit stream.

hsstell ( ) : int

Return totbit Field.

rewindNbits ( int N ) : void

Rewind N bits in Stream.

rewindNbytes ( int N ) : void

Rewind N bytes in Stream.

Private Methods

Method Description
BitReserve ( ) : System
InitBlock ( ) : void

Method Details

hget1bit() public method

Returns next bit from reserve.
public hget1bit ( ) : int
return int

hgetbits() public method

Read a number bits from the bit stream.
public hgetbits ( int N ) : int
N int the number of /// ///
return int

hputbuf() public method

Write 8 bits into the bit stream.
public hputbuf ( int val ) : void
val int
return void

hsstell() public method

Return totbit Field.
public hsstell ( ) : int
return int

rewindNbits() public method

Rewind N bits in Stream.
public rewindNbits ( int N ) : void
N int
return void

rewindNbytes() public method

Rewind N bytes in Stream.
public rewindNbytes ( int N ) : void
N int
return void