Class BitHelpers
Inheritance
System.Object
BitHelpers
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: cs.temp.dll.dll
Syntax
public static class BitHelpers
Fields
Bit0L
Declaration
public const byte Bit0L = 1
Field Value
Type |
Description |
System.Byte |
|
Bit0M
Declaration
public const byte Bit0M = 128
Field Value
Type |
Description |
System.Byte |
|
Bit1L
Declaration
public const byte Bit1L = 2
Field Value
Type |
Description |
System.Byte |
|
Bit1M
Declaration
public const byte Bit1M = 64
Field Value
Type |
Description |
System.Byte |
|
Bit2L
Declaration
public const byte Bit2L = 4
Field Value
Type |
Description |
System.Byte |
|
Bit2M
Declaration
public const byte Bit2M = 32
Field Value
Type |
Description |
System.Byte |
|
Bit3L
Declaration
public const byte Bit3L = 8
Field Value
Type |
Description |
System.Byte |
|
Bit3M
Declaration
public const byte Bit3M = 16
Field Value
Type |
Description |
System.Byte |
|
Bit4L
Declaration
public const byte Bit4L = 16
Field Value
Type |
Description |
System.Byte |
|
Bit4M
Declaration
public const byte Bit4M = 8
Field Value
Type |
Description |
System.Byte |
|
Bit5L
Declaration
public const byte Bit5L = 32
Field Value
Type |
Description |
System.Byte |
|
Bit5M
Declaration
public const byte Bit5M = 4
Field Value
Type |
Description |
System.Byte |
|
Bit6L
Declaration
public const byte Bit6L = 64
Field Value
Type |
Description |
System.Byte |
|
Bit6M
Declaration
public const byte Bit6M = 2
Field Value
Type |
Description |
System.Byte |
|
Bit7L
Declaration
public const byte Bit7L = 128
Field Value
Type |
Description |
System.Byte |
|
Bit7M
Declaration
public const byte Bit7M = 1
Field Value
Type |
Description |
System.Byte |
|
Methods
BitSet(Byte, Byte)
Declaration
public static bool BitSet(byte value, byte bit)
Parameters
Type |
Name |
Description |
System.Byte |
value |
|
System.Byte |
bit |
|
Returns
Type |
Description |
System.Boolean |
|
BitSetL(Byte, Int32)
Declaration
public static bool BitSetL(byte value, int bitNumber)
Parameters
Type |
Name |
Description |
System.Byte |
value |
|
System.Int32 |
bitNumber |
|
Returns
Type |
Description |
System.Boolean |
|
BitSetM(Byte, Int32)
Declaration
public static bool BitSetM(byte value, int bitNumber)
Parameters
Type |
Name |
Description |
System.Byte |
value |
|
System.Int32 |
bitNumber |
|
Returns
Type |
Description |
System.Boolean |
|
PackFlags(Boolean[])
Declaration
public static byte PackFlags(params bool[] flags)
Parameters
Type |
Name |
Description |
System.Boolean[] |
flags |
|
Returns
Type |
Description |
System.Byte |
|
UnpackFlags(Byte)
Declaration
public static UnpackFlags(byte packed)
Parameters
Type |
Name |
Description |
System.Byte |
packed |
|
Returns