C# Class NetTools.Bits

Afficher le fichier Open project: jsakamoto/ipaddressrange Class Usage Examples

Méthodes publiques

Méthode Description
And ( byte A, byte B ) : byte[]
GE ( byte A, byte B ) : bool
GetBitMask ( int sizeOfBuff, int bitLen ) : byte[]
GetBitMaskLength ( byte bytes ) : int?

Counts the number of leading 1's in a bitmask. Returns null if value is invalid as a bitmask.

Increment ( byte bytes ) : byte[]
LE ( byte A, byte B ) : bool
Not ( byte bytes ) : byte[]
Or ( byte A, byte B ) : byte[]

Method Details

And() public static méthode

public static And ( byte A, byte B ) : byte[]
A byte
B byte
Résultat byte[]

GE() public static méthode

public static GE ( byte A, byte B ) : bool
A byte
B byte
Résultat bool

GetBitMask() public static méthode

public static GetBitMask ( int sizeOfBuff, int bitLen ) : byte[]
sizeOfBuff int
bitLen int
Résultat byte[]

GetBitMaskLength() public static méthode

Counts the number of leading 1's in a bitmask. Returns null if value is invalid as a bitmask.
public static GetBitMaskLength ( byte bytes ) : int?
bytes byte
Résultat int?

Increment() public static méthode

public static Increment ( byte bytes ) : byte[]
bytes byte
Résultat byte[]

LE() public static méthode

public static LE ( byte A, byte B ) : bool
A byte
B byte
Résultat bool

Not() public static méthode

public static Not ( byte bytes ) : byte[]
bytes byte
Résultat byte[]

Or() public static méthode

public static Or ( byte A, byte B ) : byte[]
A byte
B byte
Résultat byte[]