C# Class ManagedWin32.BitHelper

Helps perform certain operations on primative types that deal with bits
Exibir arquivo Open project: MathewSachin/ManagedWin32

Public Methods

Method Description
HiByte ( this pWord ) : byte

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

HiDword ( this pDWord ) : int

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

HiWord ( this pDWord ) : short

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

LoByte ( this pWord ) : byte

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

LoDword ( this pDWord ) : int

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

LoWord ( this pDWord ) : short

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 ( this pWord ) : byte
pWord this
return byte

HiDword() public static method

The return value is the high-order double word of the specified value.
public static HiDword ( this pDWord ) : int
pDWord this
return int

HiWord() public static method

The return value is the high-order word of the specified value.
public static HiWord ( this pDWord ) : short
pDWord this
return short

LoByte() public static method

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

LoDword() public static method

The return value is the low-order word of the specified value.
public static LoDword ( this pDWord ) : int
pDWord this
return int

LoWord() public static method

The return value is the low-order word of the specified value.
public static LoWord ( this pDWord ) : short
pDWord this
return short

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