C# Class natix.CompactDS.BinaryCoding

Uses a small fixed number of bits to represent numbers. Truncated binary.
Inheritance: IIEncoder32
Datei anzeigen Open project: sadit/natix Class Usage Examples

Public Methods

Method Description
ArrayAdd ( BitStream32 Buffer, int val ) : void
ArrayGet ( BitStream32 Buffer, int pos ) : int
ArraySet ( BitStream32 Buffer, int pos, int val ) : void
BinaryCoding ( ) : System
BinaryCoding ( int numbits ) : System
Decode ( BitStream32 Buffer, BitStreamCtx ctx ) : int
Encode ( BitStream32 Buffer, int u ) : void
Load ( BinaryReader Input ) : void
Save ( BinaryWriter Output ) : void

Method Details

ArrayAdd() public method

public ArrayAdd ( BitStream32 Buffer, int val ) : void
Buffer BitStream32
val int
return void

ArrayGet() public method

public ArrayGet ( BitStream32 Buffer, int pos ) : int
Buffer BitStream32
pos int
return int

ArraySet() public method

public ArraySet ( BitStream32 Buffer, int pos, int val ) : void
Buffer BitStream32
pos int
val int
return void

BinaryCoding() public method

public BinaryCoding ( ) : System
return System

BinaryCoding() public method

public BinaryCoding ( int numbits ) : System
numbits int
return System

Decode() public method

public Decode ( BitStream32 Buffer, BitStreamCtx ctx ) : int
Buffer BitStream32
ctx BitStreamCtx
return int

Encode() public method

public Encode ( BitStream32 Buffer, int u ) : void
Buffer BitStream32
u int
return void

Load() public method

public Load ( BinaryReader Input ) : void
Input System.IO.BinaryReader
return void

Save() public method

public Save ( BinaryWriter Output ) : void
Output System.IO.BinaryWriter
return void