C# Class imBMW.Tools.NumHelpers

Exibir arquivo Open project: toxsedyshev/imBMW

Public Methods

Method Description
AddBit ( this b, byte bitIndex ) : byte
AddBits ( this b, byte bits ) : byte
HasBit ( this b, byte bitIndex ) : bool
HasBits ( this b, byte bits ) : bool
Invert ( this b ) : byte
RemoveBit ( this b, byte bitIndex ) : byte
RemoveBits ( this b, byte bits ) : byte
ToHex ( this b ) : String

Private Methods

Method Description
checkByteBitIndex ( byte bitIndex ) : void

Method Details

AddBit() public static method

public static AddBit ( this b, byte bitIndex ) : byte
b this
bitIndex byte
return byte

AddBits() public static method

public static AddBits ( this b, byte bits ) : byte
b this
bits byte
return byte

HasBit() public static method

public static HasBit ( this b, byte bitIndex ) : bool
b this
bitIndex byte
return bool

HasBits() public static method

public static HasBits ( this b, byte bits ) : bool
b this
bits byte
return bool

Invert() public static method

public static Invert ( this b ) : byte
b this
return byte

RemoveBit() public static method

public static RemoveBit ( this b, byte bitIndex ) : byte
b this
bitIndex byte
return byte

RemoveBits() public static method

public static RemoveBits ( this b, byte bits ) : byte
b this
bits byte
return byte

ToHex() public static method

public static ToHex ( this b ) : String
b this
return String