Click or drag to resize

BitExtensions Class

Defines extension methods related to bit operations.
Inheritance Hierarchy
SystemObject
  GSFBitExtensions

Namespace: GSF
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.245-beta+94213ae9d4d0aa7a2c48e5398b12d267b99f868a
Syntax
public static class BitExtensions
View Source

The BitExtensions type exposes the following members.

Methods
 NameDescription
Public Extension MethodBitRotL(Byte, Int32) Performs right-wise bit-rotation for the specified number of rotations.
Public Extension MethodBitRotL(Int16, Int32) Performs right-wise bit-rotation for the specified number of rotations.
Public Extension MethodBitRotL(Int24, Int32) Performs right-wise bit-rotation for the specified number of rotations.
Public Extension MethodBitRotL(Int32, Int32) Performs right-wise bit-rotation for the specified number of rotations.
Public Extension MethodBitRotL(Int64, Int32) Performs right-wise bit-rotation for the specified number of rotations.
Public Extension MethodBitRotL(SByte, Int32) Performs right-wise bit-rotation for the specified number of rotations.
Public Extension MethodBitRotL(UInt16, Int32) Performs right-wise bit-rotation for the specified number of rotations.
Public Extension MethodBitRotL(UInt24, Int32) Performs right-wise bit-rotation for the specified number of rotations.
Public Extension MethodBitRotL(UInt32, Int32) Performs right-wise bit-rotation for the specified number of rotations.
Public Extension MethodBitRotL(UInt64, Int32) Performs right-wise bit-rotation for the specified number of rotations.
Public Extension MethodBitRotR(Byte, Int32) Performs right-wise bit-rotation for the specified number of rotations.
Public Extension MethodBitRotR(Int16, Int32) Performs right-wise bit-rotation for the specified number of rotations.
Public Extension MethodBitRotR(Int24, Int32) Performs right-wise bit-rotation for the specified number of rotations.
Public Extension MethodBitRotR(Int32, Int32) Performs right-wise bit-rotation for the specified number of rotations.
Public Extension MethodBitRotR(Int64, Int32) Performs right-wise bit-rotation for the specified number of rotations.
Public Extension MethodBitRotR(SByte, Int32) Performs right-wise bit-rotation for the specified number of rotations.
Public Extension MethodBitRotR(UInt16, Int32) Performs right-wise bit-rotation for the specified number of rotations.
Public Extension MethodBitRotR(UInt24, Int32) Performs right-wise bit-rotation for the specified number of rotations.
Public Extension MethodBitRotR(UInt32, Int32) Performs right-wise bit-rotation for the specified number of rotations.
Public Extension MethodBitRotR(UInt64, Int32) Performs right-wise bit-rotation for the specified number of rotations.
Public methodStatic memberBitVal Gets the bit value for the specified bit index (0 - 63).
Public Extension MethodCheckBits(Byte, Bits) Determines if specified bits are set.
Public Extension MethodCheckBits(Byte, Byte) Determines if specified bits are set.
Public Extension MethodCheckBits(Int16, Bits) Determines if specified bits are set.
Public Extension MethodCheckBits(Int16, Int16) Determines if specified bits are set.
Public Extension MethodCheckBits(Int24, Bits) Determines if specified bits are set.
Public Extension MethodCheckBits(Int24, Int24) Determines if specified bits are set.
Public Extension MethodCheckBits(Int32, Bits) Determines if specified bits are set.
Public Extension MethodCheckBits(Int32, Int32) Determines if specified bits are set.
Public Extension MethodCheckBits(Int64, Bits) Determines if specified bits are set.
Public Extension MethodCheckBits(Int64, Int64) Determines if specified bits are set.
Public Extension MethodCheckBits(SByte, Bits) Determines if specified bits are set.
Public Extension MethodCheckBits(SByte, SByte) Determines if specified bits are set.
Public Extension MethodCheckBits(UInt16, Bits) Determines if specified bits are set.
Public Extension MethodCheckBits(UInt16, UInt16) Determines if specified bits are set.
Public Extension MethodCheckBits(UInt24, Bits) Determines if specified bits are set.
Public Extension MethodCheckBits(UInt24, UInt24) Determines if specified bits are set.
Public Extension MethodCheckBits(UInt32, Bits) Determines if specified bits are set.
Public Extension MethodCheckBits(UInt32, UInt32) Determines if specified bits are set.
Public Extension MethodCheckBits(UInt64, Bits) Determines if specified bits are set.
Public Extension MethodCheckBits(UInt64, UInt64) Determines if specified bits are set.
Public Extension MethodCheckBits(Byte, Bits, Boolean) Determines if specified bits are set.
Public Extension MethodCheckBits(Byte, Byte, Boolean) Determines if specified bits are set.
Public Extension MethodCheckBits(Int16, Bits, Boolean) Determines if specified bits are set.
Public Extension MethodCheckBits(Int16, Int16, Boolean) Determines if specified bits are set.
Public Extension MethodCheckBits(Int24, Bits, Boolean) Determines if specified bits are set.
Public Extension MethodCheckBits(Int24, Int24, Boolean) Determines if specified bits are set.
Public Extension MethodCheckBits(Int32, Bits, Boolean) Determines if specified bits are set.
Public Extension MethodCheckBits(Int32, Int32, Boolean) Determines if specified bits are set.
Public Extension MethodCheckBits(Int64, Bits, Boolean) Determines if specified bits are set.
Public Extension MethodCheckBits(Int64, Int64, Boolean) Determines if specified bits are set.
Public Extension MethodCheckBits(SByte, Bits, Boolean) Determines if specified bits are set.
Public Extension MethodCheckBits(SByte, SByte, Boolean) Determines if specified bits are set.
Public Extension MethodCheckBits(UInt16, Bits, Boolean) Determines if specified bits are set.
Public Extension MethodCheckBits(UInt16, UInt16, Boolean) Determines if specified bits are set.
Public Extension MethodCheckBits(UInt24, Bits, Boolean) Determines if specified bits are set.
Public Extension MethodCheckBits(UInt24, UInt24, Boolean) Determines if specified bits are set.
Public Extension MethodCheckBits(UInt32, Bits, Boolean) Determines if specified bits are set.
Public Extension MethodCheckBits(UInt32, UInt32, Boolean) Determines if specified bits are set.
Public Extension MethodCheckBits(UInt64, Bits, Boolean) Determines if specified bits are set.
Public Extension MethodCheckBits(UInt64, UInt64, Boolean) Determines if specified bits are set.
Public Extension MethodClearBits(Byte, Bits) Returns value with specified bits cleared.
Public Extension MethodClearBits(Byte, Byte) Returns value with specified bits cleared.
Public Extension MethodClearBits(Int16, Bits) Returns value with specified bits cleared.
Public Extension MethodClearBits(Int16, Int16) Returns value with specified bits cleared.
Public Extension MethodClearBits(Int24, Bits) Returns value with specified bits cleared.
Public Extension MethodClearBits(Int24, Int24) Returns value with specified bits cleared.
Public Extension MethodClearBits(Int32, Bits) Returns value with specified bits cleared.
Public Extension MethodClearBits(Int32, Int32) Returns value with specified bits cleared.
Public Extension MethodClearBits(Int64, Bits) Returns value with specified bits cleared.
Public Extension MethodClearBits(Int64, Int64) Returns value with specified bits cleared.
Public Extension MethodClearBits(SByte, Bits) Returns value with specified bits cleared.
Public Extension MethodClearBits(SByte, SByte) Returns value with specified bits cleared.
Public Extension MethodClearBits(UInt16, Bits) Returns value with specified bits cleared.
Public Extension MethodClearBits(UInt16, UInt16) Returns value with specified bits cleared.
Public Extension MethodClearBits(UInt24, Bits) Returns value with specified bits cleared.
Public Extension MethodClearBits(UInt24, UInt24) Returns value with specified bits cleared.
Public Extension MethodClearBits(UInt32, Bits) Returns value with specified bits cleared.
Public Extension MethodClearBits(UInt32, UInt32) Returns value with specified bits cleared.
Public Extension MethodClearBits(UInt64, Bits) Returns value with specified bits cleared.
Public Extension MethodClearBits(UInt64, UInt64) Returns value with specified bits cleared.
Public Extension MethodGetMaskedValue(Byte, Bits) Returns value stored in the bits represented by the specified bitmask.
Public Extension MethodGetMaskedValue(Byte, Byte) Returns value stored in the bits represented by the specified bitmask.
Public Extension MethodGetMaskedValue(Int16, Bits) Returns value stored in the bits represented by the specified bitmask.
Public Extension MethodGetMaskedValue(Int16, Int16) Returns value stored in the bits represented by the specified bitmask.
Public Extension MethodGetMaskedValue(Int24, Bits) Returns value stored in the bits represented by the specified bitmask.
Public Extension MethodGetMaskedValue(Int24, Int24) Returns value stored in the bits represented by the specified bitmask.
Public Extension MethodGetMaskedValue(Int32, Bits) Returns value stored in the bits represented by the specified bitmask.
Public Extension MethodGetMaskedValue(Int32, Int32) Returns value stored in the bits represented by the specified bitmask.
Public Extension MethodGetMaskedValue(Int64, Bits) Returns value stored in the bits represented by the specified bitmask.
Public Extension MethodGetMaskedValue(Int64, Int64) Returns value stored in the bits represented by the specified bitmask.
Public Extension MethodGetMaskedValue(SByte, Bits) Returns value stored in the bits represented by the specified bitmask.
Public Extension MethodGetMaskedValue(SByte, SByte) Returns value stored in the bits represented by the specified bitmask.
Public Extension MethodGetMaskedValue(UInt16, Bits) Returns value stored in the bits represented by the specified bitmask.
Public Extension MethodGetMaskedValue(UInt16, UInt16) Returns value stored in the bits represented by the specified bitmask.
Public Extension MethodGetMaskedValue(UInt24, Bits) Returns value stored in the bits represented by the specified bitmask.
Public Extension MethodGetMaskedValue(UInt24, UInt24) Returns value stored in the bits represented by the specified bitmask.
Public Extension MethodGetMaskedValue(UInt32, Bits) Returns value stored in the bits represented by the specified bitmask.
Public Extension MethodGetMaskedValue(UInt32, UInt32) Returns value stored in the bits represented by the specified bitmask.
Public Extension MethodGetMaskedValue(UInt64, Bits) Returns value stored in the bits represented by the specified bitmask.
Public Extension MethodGetMaskedValue(UInt64, UInt64) Returns value stored in the bits represented by the specified bitmask.
Public Extension MethodSetBits(Byte, Bits) Returns value with specified bits set.
Public Extension MethodSetBits(Byte, Byte) Returns value with specified bits set.
Public Extension MethodSetBits(Int16, Bits) Returns value with specified bits set.
Public Extension MethodSetBits(Int16, Int16) Returns value with specified bits set.
Public Extension MethodSetBits(Int24, Bits) Returns value with specified bits set.
Public Extension MethodSetBits(Int24, Int24) Returns value with specified bits set.
Public Extension MethodSetBits(Int32, Bits) Returns value with specified bits set.
Public Extension MethodSetBits(Int32, Int32) Returns value with specified bits set.
Public Extension MethodSetBits(Int64, Bits) Returns value with specified bits set.
Public Extension MethodSetBits(Int64, Int64) Returns value with specified bits set.
Public Extension MethodSetBits(SByte, Bits) Returns value with specified bits set.
Public Extension MethodSetBits(SByte, SByte) Returns value with specified bits set.
Public Extension MethodSetBits(UInt16, Bits) Returns value with specified bits set.
Public Extension MethodSetBits(UInt16, UInt16) Returns value with specified bits set.
Public Extension MethodSetBits(UInt24, Bits) Returns value with specified bits set.
Public Extension MethodSetBits(UInt24, UInt24) Returns value with specified bits set.
Public Extension MethodSetBits(UInt32, Bits) Returns value with specified bits set.
Public Extension MethodSetBits(UInt32, UInt32) Returns value with specified bits set.
Public Extension MethodSetBits(UInt64, Bits) Returns value with specified bits set.
Public Extension MethodSetBits(UInt64, UInt64) Returns value with specified bits set.
Public Extension MethodSetMaskedValue(Byte, Bits, Byte) Returns value after setting a new value for the bits specified by the bitmask.
Public Extension MethodSetMaskedValue(Byte, Byte, Byte) Returns value after setting a new value for the bits specified by the bitmask.
Public Extension MethodSetMaskedValue(Int16, Bits, Int16) Returns value after setting a new value for the bits specified by the bitmask.
Public Extension MethodSetMaskedValue(Int16, Int16, Int16) Returns value after setting a new value for the bits specified by the bitmask.
Public Extension MethodSetMaskedValue(Int24, Bits, Int24) Returns value after setting a new value for the bits specified by the bitmask.
Public Extension MethodSetMaskedValue(Int24, Int24, Int24) Returns value after setting a new value for the bits specified by the bitmask.
Public Extension MethodSetMaskedValue(Int32, Bits, Int32) Returns value after setting a new value for the bits specified by the bitmask.
Public Extension MethodSetMaskedValue(Int32, Int32, Int32) Returns value after setting a new value for the bits specified by the bitmask.
Public Extension MethodSetMaskedValue(Int64, Bits, Int64) Returns value after setting a new value for the bits specified by the bitmask.
Public Extension MethodSetMaskedValue(Int64, Int64, Int64) Returns value after setting a new value for the bits specified by the bitmask.
Public Extension MethodSetMaskedValue(SByte, Bits, SByte) Returns value after setting a new value for the bits specified by the bitmask.
Public Extension MethodSetMaskedValue(SByte, SByte, SByte) Returns value after setting a new value for the bits specified by the bitmask.
Public Extension MethodSetMaskedValue(UInt16, Bits, UInt16) Returns value after setting a new value for the bits specified by the bitmask.
Public Extension MethodSetMaskedValue(UInt16, UInt16, UInt16) Returns value after setting a new value for the bits specified by the bitmask.
Public Extension MethodSetMaskedValue(UInt24, Bits, UInt24) Returns value after setting a new value for the bits specified by the bitmask.
Public Extension MethodSetMaskedValue(UInt24, UInt24, UInt24) Returns value after setting a new value for the bits specified by the bitmask.
Public Extension MethodSetMaskedValue(UInt32, Bits, UInt32) Returns value after setting a new value for the bits specified by the bitmask.
Public Extension MethodSetMaskedValue(UInt32, UInt32, UInt32) Returns value after setting a new value for the bits specified by the bitmask.
Public Extension MethodSetMaskedValue(UInt64, Bits, UInt64) Returns value after setting a new value for the bits specified by the bitmask.
Public Extension MethodSetMaskedValue(UInt64, UInt64, UInt64) Returns value after setting a new value for the bits specified by the bitmask.
Public Extension MethodToBinaryString(Byte) Encodes value as binary, i.e., a string of bit values (0 or 1).
Public Extension MethodToBinaryString(Int16) Encodes value as binary, i.e., a string of bit values (0 or 1).
Public Extension MethodToBinaryString(Int24) Encodes value as binary, i.e., a string of bit values (0 or 1).
Public Extension MethodToBinaryString(Int32) Encodes value as binary, i.e., a string of bit values (0 or 1).
Public Extension MethodToBinaryString(Int64) Encodes value as binary, i.e., a string of bit values (0 or 1).
Public Extension MethodToBinaryString(SByte) Encodes value as binary, i.e., a string of bit values (0 or 1).
Public Extension MethodToBinaryString(UInt16) Encodes value as binary, i.e., a string of bit values (0 or 1).
Public Extension MethodToBinaryString(UInt24) Encodes value as binary, i.e., a string of bit values (0 or 1).
Public Extension MethodToBinaryString(UInt32) Encodes value as binary, i.e., a string of bit values (0 or 1).
Public Extension MethodToBinaryString(UInt64) Encodes value as binary, i.e., a string of bit values (0 or 1).
Public Extension MethodToggleBits(Byte, Bits) Returns value with specified bits toggled.
Public Extension MethodToggleBits(Byte, Byte) Returns value with specified bits toggled.
Public Extension MethodToggleBits(Int16, Bits) Returns value with specified bits toggled.
Public Extension MethodToggleBits(Int16, Int16) Returns value with specified bits toggled.
Public Extension MethodToggleBits(Int24, Bits) Returns value with specified bits toggled.
Public Extension MethodToggleBits(Int24, Int24) Returns value with specified bits toggled.
Public Extension MethodToggleBits(Int32, Bits) Returns value with specified bits toggled.
Public Extension MethodToggleBits(Int32, Int32) Returns value with specified bits toggled.
Public Extension MethodToggleBits(Int64, Bits) Returns value with specified bits toggled.
Public Extension MethodToggleBits(Int64, Int64) Returns value with specified bits toggled.
Public Extension MethodToggleBits(SByte, Bits) Returns value with specified bits toggled.
Public Extension MethodToggleBits(SByte, SByte) Returns value with specified bits toggled.
Public Extension MethodToggleBits(UInt16, Bits) Returns value with specified bits toggled.
Public Extension MethodToggleBits(UInt16, UInt16) Returns value with specified bits toggled.
Public Extension MethodToggleBits(UInt24, Bits) Returns value with specified bits toggled.
Public Extension MethodToggleBits(UInt24, UInt24) Returns value with specified bits toggled.
Public Extension MethodToggleBits(UInt32, Bits) Returns value with specified bits toggled.
Public Extension MethodToggleBits(UInt32, UInt32) Returns value with specified bits toggled.
Public Extension MethodToggleBits(UInt64, Bits) Returns value with specified bits toggled.
Public Extension MethodToggleBits(UInt64, UInt64) Returns value with specified bits toggled.
Top
See Also

Reference

GSF Namespace