C# Class Recurity.Swf.BitStream

Datei anzeigen Open project: rtezli/Blitzableiter Class Usage Examples

Public Methods

Method Description
BitStream ( ) : System

BitStream ( Stream input ) : System

CountMaximumBits ( ) : int

CountNeededBits ( int source ) : int

Signed integer Bit counting

CountNeededBits ( ulong source ) : int

CountNeededBitsFB ( double source ) : int

FBtoInt32 ( double source ) : Int32

GetBits ( UInt32 numerOfBits ) : UInt32

GetBitsFB ( UInt32 numberOfBits, double &result ) : void

GetBitsSigned ( UInt32 numberOfBits ) : Int32

Reset ( ) : void

WriteBits ( int numberOfBits, int data ) : void

/

WriteBits ( int numberOfBits, ulong data ) : void

Fails for the following szenario : bits.WriteBits( 3 , 1 ), RGB.Write() RGB is #ff bits would look like following : 00000000 11111111 11111111 11111111

WriteBitsFB ( int numberOfBits, double value ) : void

WriteFlush ( ) : void

Method Details

BitStream() public method

public BitStream ( ) : System
return System

BitStream() public method

public BitStream ( Stream input ) : System
input Stream
return System

CountMaximumBits() public method

public CountMaximumBits ( ) : int
return int

CountNeededBits() public method

Signed integer Bit counting
public CountNeededBits ( int source ) : int
source int A signed int
return int

CountNeededBits() public method

public CountNeededBits ( ulong source ) : int
source ulong
return int

CountNeededBitsFB() public method

public CountNeededBitsFB ( double source ) : int
source double
return int

FBtoInt32() public method

public FBtoInt32 ( double source ) : Int32
source double
return System.Int32

GetBits() public method

public GetBits ( UInt32 numerOfBits ) : UInt32
numerOfBits System.UInt32
return System.UInt32

GetBitsFB() public method

public GetBitsFB ( UInt32 numberOfBits, double &result ) : void
numberOfBits System.UInt32
result double
return void

GetBitsSigned() public method

public GetBitsSigned ( UInt32 numberOfBits ) : Int32
numberOfBits System.UInt32
return System.Int32

Reset() public method

public Reset ( ) : void
return void

WriteBits() public method

/
public WriteBits ( int numberOfBits, int data ) : void
numberOfBits int
data int
return void

WriteBits() public method

Fails for the following szenario : bits.WriteBits( 3 , 1 ), RGB.Write() RGB is #ff bits would look like following : 00000000 11111111 11111111 11111111
public WriteBits ( int numberOfBits, ulong data ) : void
numberOfBits int
data ulong
return void

WriteBitsFB() public method

public WriteBitsFB ( int numberOfBits, double value ) : void
numberOfBits int
value double
return void

WriteFlush() public method

public WriteFlush ( ) : void
return void