C# Class FreakySources.Code.Utils

Mostra file Open project: KvanTTT/Freaky-Sources

Public Methods

Method Description
AddBytes ( byte array, int &bitPos, byte bytes ) : void
AddInt ( byte array, int &bitPos, CompressedByte compressed ) : void
AddInt ( byte array, int &bitPos, int value, int bitsCount ) : void
AddIntReversed ( byte array, int &bitPos, CompressedByte compressed ) : void
GetInt ( byte array, int &bitPos, int bitsCount ) : int
GetValue ( HuffmanTreeNode root, byte bytes, int &bitPos ) : byte

Private Methods

Method Description
ReverseBits ( int n, int bitsCount ) : int

Method Details

AddBytes() public static method

public static AddBytes ( byte array, int &bitPos, byte bytes ) : void
array byte
bitPos int
bytes byte
return void

AddInt() public static method

public static AddInt ( byte array, int &bitPos, CompressedByte compressed ) : void
array byte
bitPos int
compressed CompressedByte
return void

AddInt() public static method

public static AddInt ( byte array, int &bitPos, int value, int bitsCount ) : void
array byte
bitPos int
value int
bitsCount int
return void

AddIntReversed() public static method

public static AddIntReversed ( byte array, int &bitPos, CompressedByte compressed ) : void
array byte
bitPos int
compressed CompressedByte
return void

GetInt() public static method

public static GetInt ( byte array, int &bitPos, int bitsCount ) : int
array byte
bitPos int
bitsCount int
return int

GetValue() public static method

public static GetValue ( HuffmanTreeNode root, byte bytes, int &bitPos ) : byte
root HuffmanTreeNode
bytes byte
bitPos int
return byte