C# Class ManagedBass.BitHelper

Helps perform certain operations on primative types that deal with bits
Show file Open project: webmaster442/TCPlayer Class Usage Examples

Public Methods

Method Description
HiByte ( short Word ) : byte

The return value is the high-order byte of the specified value.

HiDword ( long DWord ) : long

The return value is the high-order double word of the specified value.

HiWord ( int DWord ) : int

The return value is the high-order word of the specified value.

LoByte ( short Word ) : byte

The return value is the low-order byte of the specified value.

LoDword ( long DWord ) : long

The return value is the low-order word of the specified value.

LoWord ( int DWord ) : int

The return value is the low-order word of the specified value.

MakeLong ( short Low, short High ) : int

Make an integer putting Low in low 2-bytes and High in high 2-bytes.

MakeWord ( byte Low, byte High ) : short

Make an short from 2-bytes.

Method Details

HiByte() public static method

The return value is the high-order byte of the specified value.
public static HiByte ( short Word ) : byte
Word short
return byte

HiDword() public static method

The return value is the high-order double word of the specified value.
public static HiDword ( long DWord ) : long
DWord long
return long

HiWord() public static method

The return value is the high-order word of the specified value.
public static HiWord ( int DWord ) : int
DWord int
return int

LoByte() public static method

The return value is the low-order byte of the specified value.
public static LoByte ( short Word ) : byte
Word short
return byte

LoDword() public static method

The return value is the low-order word of the specified value.
public static LoDword ( long DWord ) : long
DWord long
return long

LoWord() public static method

The return value is the low-order word of the specified value.
public static LoWord ( int DWord ) : int
DWord int
return int

MakeLong() public static method

Make an integer putting Low in low 2-bytes and High in high 2-bytes.
public static MakeLong ( short Low, short High ) : int
Low short
High short
return int

MakeWord() public static method

Make an short from 2-bytes.
public static MakeWord ( byte Low, byte High ) : short
Low byte
High byte
return short