C# Class ManagedWin32.BitHelper

Helps perform certain operations on primative types that deal with bits
Afficher le fichier Open project: MathewSachin/ManagedWin32

Méthodes publiques

Méthode 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 méthode

The return value is the high-order byte of the specified value.
public static HiByte ( this pWord ) : byte
pWord this
Résultat byte

HiDword() public static méthode

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

HiWord() public static méthode

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

LoByte() public static méthode

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

LoDword() public static méthode

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

LoWord() public static méthode

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

MakeLong() public static méthode

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
Résultat int

MakeWord() public static méthode

Make an short from 2-bytes.
public static MakeWord ( byte low, byte high ) : short
low byte
high byte
Résultat short