C# Class GSF.BitExtensions

Defines extension methods related to bit operations.
Mostrar archivo Open project: GridProtectionAlliance/gsf

Public Methods

Method Description
BitRotL ( this value, int rotations ) : Int24

Performs rightwise bit-rotation for the specified number of rotations.

Actual rotation direction is from a big-endian perspective - this is an artifact of the native .NET bit shift operators. As a result bits may actually appear to rotate right on little-endian architectures.

BitRotL ( this value, int rotations ) : System.UInt24

Performs rightwise bit-rotation for the specified number of rotations.

Actual rotation direction is from a big-endian perspective - this is an artifact of the native .NET bit shift operators. As a result bits may actually appear to rotate right on little-endian architectures.

BitRotL ( this value, int rotations ) : byte

Performs rightwise bit-rotation for the specified number of rotations.

Actual rotation direction is from a big-endian perspective - this is an artifact of the native .NET bit shift operators. As a result bits may actually appear to rotate right on little-endian architectures.

BitRotL ( this value, int rotations ) : int

Performs rightwise bit-rotation for the specified number of rotations.

Actual rotation direction is from a big-endian perspective - this is an artifact of the native .NET bit shift operators. As a result bits may actually appear to rotate right on little-endian architectures.

BitRotL ( this value, int rotations ) : long

Performs rightwise bit-rotation for the specified number of rotations.

Actual rotation direction is from a big-endian perspective - this is an artifact of the native .NET bit shift operators. As a result bits may actually appear to rotate right on little-endian architectures.

BitRotL ( this value, int rotations ) : sbyte

Performs rightwise bit-rotation for the specified number of rotations.

Actual rotation direction is from a big-endian perspective - this is an artifact of the native .NET bit shift operators. As a result bits may actually appear to rotate right on little-endian architectures.

BitRotL ( this value, int rotations ) : short

Performs rightwise bit-rotation for the specified number of rotations.

Actual rotation direction is from a big-endian perspective - this is an artifact of the native .NET bit shift operators. As a result bits may actually appear to rotate right on little-endian architectures.

BitRotL ( this value, int rotations ) : uint

Performs rightwise bit-rotation for the specified number of rotations.

Actual rotation direction is from a big-endian perspective - this is an artifact of the native .NET bit shift operators. As a result bits may actually appear to rotate right on little-endian architectures.

BitRotL ( this value, int rotations ) : ulong

Performs rightwise bit-rotation for the specified number of rotations.

Actual rotation direction is from a big-endian perspective - this is an artifact of the native .NET bit shift operators. As a result bits may actually appear to rotate right on little-endian architectures.

BitRotL ( this value, int rotations ) : ushort

Performs rightwise bit-rotation for the specified number of rotations.

Actual rotation direction is from a big-endian perspective - this is an artifact of the native .NET bit shift operators. As a result bits may actually appear to rotate right on little-endian architectures.

BitRotR ( this value, int rotations ) : Int24

Performs rightwise bit-rotation for the specified number of rotations.

Actual rotation direction is from a big-endian perspective - this is an artifact of the native .NET bit shift operators. As a result bits may actually appear to rotate left on little-endian architectures.

BitRotR ( this value, int rotations ) : System.UInt24

Performs rightwise bit-rotation for the specified number of rotations.

Actual rotation direction is from a big-endian perspective - this is an artifact of the native .NET bit shift operators. As a result bits may actually appear to rotate left on little-endian architectures.

BitRotR ( this value, int rotations ) : byte

Performs rightwise bit-rotation for the specified number of rotations.

Actual rotation direction is from a big-endian perspective - this is an artifact of the native .NET bit shift operators. As a result bits may actually appear to rotate left on little-endian architectures.

BitRotR ( this value, int rotations ) : int

Performs rightwise bit-rotation for the specified number of rotations.

Actual rotation direction is from a big-endian perspective - this is an artifact of the native .NET bit shift operators. As a result bits may actually appear to rotate left on little-endian architectures.

BitRotR ( this value, int rotations ) : long

Performs rightwise bit-rotation for the specified number of rotations.

Actual rotation direction is from a big-endian perspective - this is an artifact of the native .NET bit shift operators. As a result bits may actually appear to rotate left on little-endian architectures.

BitRotR ( this value, int rotations ) : sbyte

Performs rightwise bit-rotation for the specified number of rotations.

Actual rotation direction is from a big-endian perspective - this is an artifact of the native .NET bit shift operators. As a result bits may actually appear to rotate left on little-endian architectures.

BitRotR ( this value, int rotations ) : short

Performs rightwise bit-rotation for the specified number of rotations.

Actual rotation direction is from a big-endian perspective - this is an artifact of the native .NET bit shift operators. As a result bits may actually appear to rotate left on little-endian architectures.

BitRotR ( this value, int rotations ) : uint

Performs rightwise bit-rotation for the specified number of rotations.

Actual rotation direction is from a big-endian perspective - this is an artifact of the native .NET bit shift operators. As a result bits may actually appear to rotate left on little-endian architectures.

BitRotR ( this value, int rotations ) : ulong

Performs rightwise bit-rotation for the specified number of rotations.

Actual rotation direction is from a big-endian perspective - this is an artifact of the native .NET bit shift operators. As a result bits may actually appear to rotate left on little-endian architectures.

BitRotR ( this value, int rotations ) : ushort

Performs rightwise bit-rotation for the specified number of rotations.

Actual rotation direction is from a big-endian perspective - this is an artifact of the native .NET bit shift operators. As a result bits may actually appear to rotate left on little-endian architectures.

CheckBits ( this source, Bits bits ) : bool

Determines if specified bits are set.

CheckBits ( this source, Bits bits, bool allBits ) : bool

Determines if specified bits are set.

CheckBits ( this source, Int24 bits ) : bool

Determines if specified bits are set.

CheckBits ( this source, Int24 bits, bool allBits ) : bool

Determines if specified bits are set.

CheckBits ( this source, System.UInt24 bits ) : bool

Determines if specified bits are set.

CheckBits ( this source, System.UInt24 bits, bool allBits ) : bool

Determines if specified bits are set.

CheckBits ( this source, byte bits ) : bool

Determines if specified bits are set.

CheckBits ( this source, byte bits, bool allBits ) : bool

Determines if specified bits are set.

CheckBits ( this source, int bits ) : bool

Determines if specified bits are set.

CheckBits ( this source, int bits, bool allBits ) : bool

Determines if specified bits are set.

CheckBits ( this source, long bits ) : bool

Determines if specified bits are set.

CheckBits ( this source, long bits, bool allBits ) : bool

Determines if specified bits are set.

CheckBits ( this source, sbyte bits ) : bool

Determines if specified bits are set.

CheckBits ( this source, sbyte bits, bool allBits ) : bool

Determines if specified bits are set.

CheckBits ( this source, short bits ) : bool

Determines if specified bits are set.

CheckBits ( this source, short bits, bool allBits ) : bool

Determines if specified bits are set.

CheckBits ( this source, uint bits ) : bool

Determines if specified bits are set.

CheckBits ( this source, uint bits, bool allBits ) : bool

Determines if specified bits are set.

CheckBits ( this source, ulong bits ) : bool

Determines if specified bits are set.

CheckBits ( this source, ulong bits, bool allBits ) : bool

Determines if specified bits are set.

CheckBits ( this source, ushort bits ) : bool

Determines if specified bits are set.

CheckBits ( this source, ushort bits, bool allBits ) : bool

Determines if specified bits are set.

ClearBits ( this source, Bits bits ) : Int24

Returns value with specified bits cleared.

ClearBits ( this source, Int24 bits ) : Int24

Returns value with specified bits cleared.

ClearBits ( this source, Bits bits ) : System.UInt24

Returns value with specified bits cleared.

ClearBits ( this source, System.UInt24 bits ) : System.UInt24

Returns value with specified bits cleared.

ClearBits ( this source, Bits bits ) : byte

Returns value with specified bits cleared.

ClearBits ( this source, byte bits ) : byte

Returns value with specified bits cleared.

ClearBits ( this source, Bits bits ) : int

Returns value with specified bits cleared.

ClearBits ( this source, int bits ) : int

Returns value with specified bits cleared.

ClearBits ( this source, Bits bits ) : long

Returns value with specified bits cleared.

ClearBits ( this source, long bits ) : long

Returns value with specified bits cleared.

ClearBits ( this source, Bits bits ) : sbyte

Returns value with specified bits cleared.

ClearBits ( this source, sbyte bits ) : sbyte

Returns value with specified bits cleared.

ClearBits ( this source, Bits bits ) : short

Returns value with specified bits cleared.

ClearBits ( this source, short bits ) : short

Returns value with specified bits cleared.

ClearBits ( this source, Bits bits ) : uint

Returns value with specified bits cleared.

ClearBits ( this source, uint bits ) : uint

Returns value with specified bits cleared.

ClearBits ( this source, Bits bits ) : ulong

Returns value with specified bits cleared.

ClearBits ( this source, ulong bits ) : ulong

Returns value with specified bits cleared.

ClearBits ( this source, Bits bits ) : ushort

Returns value with specified bits cleared.

ClearBits ( this source, ushort bits ) : ushort

Returns value with specified bits cleared.

GetMaskedValue ( this source, Bits bitmask ) : Int24

Returns value stored in the bits represented by the specified bitmask.

GetMaskedValue ( this source, Int24 bitmask ) : Int24

Returns value stored in the bits represented by the specified bitmask.

GetMaskedValue ( this source, Bits bitmask ) : System.UInt24

Returns value stored in the bits represented by the specified bitmask.

GetMaskedValue ( this source, System.UInt24 bitmask ) : System.UInt24

Returns value stored in the bits represented by the specified bitmask.

GetMaskedValue ( this source, Bits bitmask ) : byte

Returns value stored in the bits represented by the specified bitmask.

GetMaskedValue ( this source, byte bitmask ) : byte

Returns value stored in the bits represented by the specified bitmask.

GetMaskedValue ( this source, Bits bitmask ) : int

Returns value stored in the bits represented by the specified bitmask.

GetMaskedValue ( this source, int bitmask ) : int

Returns value stored in the bits represented by the specified bitmask.

GetMaskedValue ( this source, Bits bitmask ) : long

Returns value stored in the bits represented by the specified bitmask.

GetMaskedValue ( this source, long bitmask ) : long

Returns value stored in the bits represented by the specified bitmask.

GetMaskedValue ( this source, Bits bitmask ) : sbyte

Returns value stored in the bits represented by the specified bitmask.

GetMaskedValue ( this source, sbyte bitmask ) : sbyte

Returns value stored in the bits represented by the specified bitmask.

GetMaskedValue ( this source, Bits bitmask ) : short

Returns value stored in the bits represented by the specified bitmask.

GetMaskedValue ( this source, short bitmask ) : short

Returns value stored in the bits represented by the specified bitmask.

GetMaskedValue ( this source, Bits bitmask ) : uint

Returns value stored in the bits represented by the specified bitmask.

GetMaskedValue ( this source, uint bitmask ) : uint

Returns value stored in the bits represented by the specified bitmask.

GetMaskedValue ( this source, Bits bitmask ) : ulong

Returns value stored in the bits represented by the specified bitmask.

GetMaskedValue ( this source, ulong bitmask ) : ulong

Returns value stored in the bits represented by the specified bitmask.

GetMaskedValue ( this source, Bits bitmask ) : ushort

Returns value stored in the bits represented by the specified bitmask.

GetMaskedValue ( this source, ushort bitmask ) : ushort

Returns value stored in the bits represented by the specified bitmask.

SetBits ( this source, Bits bits ) : Int24

Returns value with specified bits set.

SetBits ( this source, Int24 bits ) : Int24

Returns value with specified bits set.

SetBits ( this source, Bits bits ) : System.UInt24

Returns value with specified bits set.

SetBits ( this source, System.UInt24 bits ) : System.UInt24

Returns value with specified bits set.

SetBits ( this source, Bits bits ) : byte

Returns value with specified bits set.

SetBits ( this source, byte bits ) : byte

Returns value with specified bits set.

SetBits ( this source, Bits bits ) : int

Returns value with specified bits set.

SetBits ( this source, int bits ) : int

Returns value with specified bits set.

SetBits ( this source, Bits bits ) : long

Returns value with specified bits set.

SetBits ( this source, long bits ) : long

Returns value with specified bits set.

SetBits ( this source, Bits bits ) : sbyte

Returns value with specified bits set.

SetBits ( this source, sbyte bits ) : sbyte

Returns value with specified bits set.

SetBits ( this source, Bits bits ) : short

Returns value with specified bits set.

SetBits ( this source, short bits ) : short

Returns value with specified bits set.

SetBits ( this source, Bits bits ) : uint

Returns value with specified bits set.

SetBits ( this source, uint bits ) : uint

Returns value with specified bits set.

SetBits ( this source, Bits bits ) : ulong

Returns value with specified bits set.

SetBits ( this source, ulong bits ) : ulong

Returns value with specified bits set.

SetBits ( this source, Bits bits ) : ushort

Returns value with specified bits set.

SetBits ( this source, ushort bits ) : ushort

Returns value with specified bits set.

SetMaskedValue ( this source, Bits bitmask, Int24 value ) : Int24

Returns value after setting a new value for the bits specified by the bitmask.

SetMaskedValue ( this source, Int24 bitmask, Int24 value ) : Int24

Returns value after setting a new value for the bits specified by the bitmask.

SetMaskedValue ( this source, Bits bitmask, System.UInt24 value ) : System.UInt24

Returns value after setting a new value for the bits specified by the bitmask.

SetMaskedValue ( this source, System.UInt24 bitmask, System.UInt24 value ) : System.UInt24

Returns value after setting a new value for the bits specified by the bitmask.

SetMaskedValue ( this source, Bits bitmask, byte value ) : byte

Returns value after setting a new value for the bits specified by the bitmask.

SetMaskedValue ( this source, byte bitmask, byte value ) : byte

Returns value after setting a new value for the bits specified by the bitmask.

SetMaskedValue ( this source, Bits bitmask, int value ) : int

Returns value after setting a new value for the bits specified by the bitmask.

SetMaskedValue ( this source, int bitmask, int value ) : int

Returns value after setting a new value for the bits specified by the bitmask.

SetMaskedValue ( this source, Bits bitmask, long value ) : long

Returns value after setting a new value for the bits specified by the bitmask.

SetMaskedValue ( this source, long bitmask, long value ) : long

Returns value after setting a new value for the bits specified by the bitmask.

SetMaskedValue ( this source, Bits bitmask, sbyte value ) : sbyte

Returns value after setting a new value for the bits specified by the bitmask.

SetMaskedValue ( this source, sbyte bitmask, sbyte value ) : sbyte

Returns value after setting a new value for the bits specified by the bitmask.

SetMaskedValue ( this source, Bits bitmask, short value ) : short

Returns value after setting a new value for the bits specified by the bitmask.

SetMaskedValue ( this source, short bitmask, short value ) : short

Returns value after setting a new value for the bits specified by the bitmask.

SetMaskedValue ( this source, Bits bitmask, uint value ) : uint

Returns value after setting a new value for the bits specified by the bitmask.

SetMaskedValue ( this source, uint bitmask, uint value ) : uint

Returns value after setting a new value for the bits specified by the bitmask.

SetMaskedValue ( this source, Bits bitmask, ulong value ) : ulong

Returns value after setting a new value for the bits specified by the bitmask.

SetMaskedValue ( this source, ulong bitmask, ulong value ) : ulong

Returns value after setting a new value for the bits specified by the bitmask.

SetMaskedValue ( this source, Bits bitmask, ushort value ) : ushort

Returns value after setting a new value for the bits specified by the bitmask.

SetMaskedValue ( this source, ushort bitmask, ushort value ) : ushort

Returns value after setting a new value for the bits specified by the bitmask.

ToggleBits ( this source, Bits bits ) : Int24

Returns value with specified bits toggled.

ToggleBits ( this source, Int24 bits ) : Int24

Returns value with specified bits toggled.

ToggleBits ( this source, Bits bits ) : System.UInt24

Returns value with specified bits toggled.

ToggleBits ( this source, System.UInt24 bits ) : System.UInt24

Returns value with specified bits toggled.

ToggleBits ( this source, Bits bits ) : byte

Returns value with specified bits toggled.

ToggleBits ( this source, byte bits ) : byte

Returns value with specified bits toggled.

ToggleBits ( this source, Bits bits ) : int

Returns value with specified bits toggled.

ToggleBits ( this source, int bits ) : int

Returns value with specified bits toggled.

ToggleBits ( this source, Bits bits ) : long

Returns value with specified bits toggled.

ToggleBits ( this source, long bits ) : long

Returns value with specified bits toggled.

ToggleBits ( this source, Bits bits ) : sbyte

Returns value with specified bits toggled.

ToggleBits ( this source, sbyte bits ) : sbyte

Returns value with specified bits toggled.

ToggleBits ( this source, Bits bits ) : short

Returns value with specified bits toggled.

ToggleBits ( this source, short bits ) : short

Returns value with specified bits toggled.

ToggleBits ( this source, Bits bits ) : uint

Returns value with specified bits toggled.

ToggleBits ( this source, uint bits ) : uint

Returns value with specified bits toggled.

ToggleBits ( this source, Bits bits ) : ulong

Returns value with specified bits toggled.

ToggleBits ( this source, ulong bits ) : ulong

Returns value with specified bits toggled.

ToggleBits ( this source, Bits bits ) : ushort

Returns value with specified bits toggled.

ToggleBits ( this source, ushort bits ) : ushort

Returns value with specified bits toggled.

Private Methods

Method Description
BitVal ( int bit ) : Bits

Method Details

BitRotL() public static method

Performs rightwise bit-rotation for the specified number of rotations.
Actual rotation direction is from a big-endian perspective - this is an artifact of the native .NET bit shift operators. As a result bits may actually appear to rotate right on little-endian architectures.
public static BitRotL ( this value, int rotations ) : Int24
value this Value used for bit-rotation.
rotations int Number of rotations to perform.
return Int24

BitRotL() public static method

Performs rightwise bit-rotation for the specified number of rotations.
Actual rotation direction is from a big-endian perspective - this is an artifact of the native .NET bit shift operators. As a result bits may actually appear to rotate right on little-endian architectures.
public static BitRotL ( this value, int rotations ) : System.UInt24
value this Value used for bit-rotation.
rotations int Number of rotations to perform.
return System.UInt24

BitRotL() public static method

Performs rightwise bit-rotation for the specified number of rotations.
Actual rotation direction is from a big-endian perspective - this is an artifact of the native .NET bit shift operators. As a result bits may actually appear to rotate right on little-endian architectures.
public static BitRotL ( this value, int rotations ) : byte
value this Value used for bit-rotation.
rotations int Number of rotations to perform.
return byte

BitRotL() public static method

Performs rightwise bit-rotation for the specified number of rotations.
Actual rotation direction is from a big-endian perspective - this is an artifact of the native .NET bit shift operators. As a result bits may actually appear to rotate right on little-endian architectures.
public static BitRotL ( this value, int rotations ) : int
value this Value used for bit-rotation.
rotations int Number of rotations to perform.
return int

BitRotL() public static method

Performs rightwise bit-rotation for the specified number of rotations.
Actual rotation direction is from a big-endian perspective - this is an artifact of the native .NET bit shift operators. As a result bits may actually appear to rotate right on little-endian architectures.
public static BitRotL ( this value, int rotations ) : long
value this Value used for bit-rotation.
rotations int Number of rotations to perform.
return long

BitRotL() public static method

Performs rightwise bit-rotation for the specified number of rotations.
Actual rotation direction is from a big-endian perspective - this is an artifact of the native .NET bit shift operators. As a result bits may actually appear to rotate right on little-endian architectures.
public static BitRotL ( this value, int rotations ) : sbyte
value this Value used for bit-rotation.
rotations int Number of rotations to perform.
return sbyte

BitRotL() public static method

Performs rightwise bit-rotation for the specified number of rotations.
Actual rotation direction is from a big-endian perspective - this is an artifact of the native .NET bit shift operators. As a result bits may actually appear to rotate right on little-endian architectures.
public static BitRotL ( this value, int rotations ) : short
value this Value used for bit-rotation.
rotations int Number of rotations to perform.
return short

BitRotL() public static method

Performs rightwise bit-rotation for the specified number of rotations.
Actual rotation direction is from a big-endian perspective - this is an artifact of the native .NET bit shift operators. As a result bits may actually appear to rotate right on little-endian architectures.
public static BitRotL ( this value, int rotations ) : uint
value this Value used for bit-rotation.
rotations int Number of rotations to perform.
return uint

BitRotL() public static method

Performs rightwise bit-rotation for the specified number of rotations.
Actual rotation direction is from a big-endian perspective - this is an artifact of the native .NET bit shift operators. As a result bits may actually appear to rotate right on little-endian architectures.
public static BitRotL ( this value, int rotations ) : ulong
value this Value used for bit-rotation.
rotations int Number of rotations to perform.
return ulong

BitRotL() public static method

Performs rightwise bit-rotation for the specified number of rotations.
Actual rotation direction is from a big-endian perspective - this is an artifact of the native .NET bit shift operators. As a result bits may actually appear to rotate right on little-endian architectures.
public static BitRotL ( this value, int rotations ) : ushort
value this Value used for bit-rotation.
rotations int Number of rotations to perform.
return ushort

BitRotR() public static method

Performs rightwise bit-rotation for the specified number of rotations.
Actual rotation direction is from a big-endian perspective - this is an artifact of the native .NET bit shift operators. As a result bits may actually appear to rotate left on little-endian architectures.
public static BitRotR ( this value, int rotations ) : Int24
value this Value used for bit-rotation.
rotations int Number of rotations to perform.
return Int24

BitRotR() public static method

Performs rightwise bit-rotation for the specified number of rotations.
Actual rotation direction is from a big-endian perspective - this is an artifact of the native .NET bit shift operators. As a result bits may actually appear to rotate left on little-endian architectures.
public static BitRotR ( this value, int rotations ) : System.UInt24
value this Value used for bit-rotation.
rotations int Number of rotations to perform.
return System.UInt24

BitRotR() public static method

Performs rightwise bit-rotation for the specified number of rotations.
Actual rotation direction is from a big-endian perspective - this is an artifact of the native .NET bit shift operators. As a result bits may actually appear to rotate left on little-endian architectures.
public static BitRotR ( this value, int rotations ) : byte
value this Value used for bit-rotation.
rotations int Number of rotations to perform.
return byte

BitRotR() public static method

Performs rightwise bit-rotation for the specified number of rotations.
Actual rotation direction is from a big-endian perspective - this is an artifact of the native .NET bit shift operators. As a result bits may actually appear to rotate left on little-endian architectures.
public static BitRotR ( this value, int rotations ) : int
value this Value used for bit-rotation.
rotations int Number of rotations to perform.
return int

BitRotR() public static method

Performs rightwise bit-rotation for the specified number of rotations.
Actual rotation direction is from a big-endian perspective - this is an artifact of the native .NET bit shift operators. As a result bits may actually appear to rotate left on little-endian architectures.
public static BitRotR ( this value, int rotations ) : long
value this Value used for bit-rotation.
rotations int Number of rotations to perform.
return long

BitRotR() public static method

Performs rightwise bit-rotation for the specified number of rotations.
Actual rotation direction is from a big-endian perspective - this is an artifact of the native .NET bit shift operators. As a result bits may actually appear to rotate left on little-endian architectures.
public static BitRotR ( this value, int rotations ) : sbyte
value this Value used for bit-rotation.
rotations int Number of rotations to perform.
return sbyte

BitRotR() public static method

Performs rightwise bit-rotation for the specified number of rotations.
Actual rotation direction is from a big-endian perspective - this is an artifact of the native .NET bit shift operators. As a result bits may actually appear to rotate left on little-endian architectures.
public static BitRotR ( this value, int rotations ) : short
value this Value used for bit-rotation.
rotations int Number of rotations to perform.
return short

BitRotR() public static method

Performs rightwise bit-rotation for the specified number of rotations.
Actual rotation direction is from a big-endian perspective - this is an artifact of the native .NET bit shift operators. As a result bits may actually appear to rotate left on little-endian architectures.
public static BitRotR ( this value, int rotations ) : uint
value this Value used for bit-rotation.
rotations int Number of rotations to perform.
return uint

BitRotR() public static method

Performs rightwise bit-rotation for the specified number of rotations.
Actual rotation direction is from a big-endian perspective - this is an artifact of the native .NET bit shift operators. As a result bits may actually appear to rotate left on little-endian architectures.
public static BitRotR ( this value, int rotations ) : ulong
value this Value used for bit-rotation.
rotations int Number of rotations to perform.
return ulong

BitRotR() public static method

Performs rightwise bit-rotation for the specified number of rotations.
Actual rotation direction is from a big-endian perspective - this is an artifact of the native .NET bit shift operators. As a result bits may actually appear to rotate left on little-endian architectures.
public static BitRotR ( this value, int rotations ) : ushort
value this Value used for bit-rotation.
rotations int Number of rotations to perform.
return ushort

CheckBits() public static method

Determines if specified bits are set.
public static CheckBits ( this source, Bits bits ) : bool
source this Value source.
bits Bits to check.
return bool

CheckBits() public static method

Determines if specified bits are set.
public static CheckBits ( this source, Bits bits, bool allBits ) : bool
source this Value source.
bits Bits to check.
allBits bool true to check if all are set; otherwise false.
return bool

CheckBits() public static method

Determines if specified bits are set.
public static CheckBits ( this source, Int24 bits ) : bool
source this Value source.
bits Int24 Bit-mask of the bits to check.
return bool

CheckBits() public static method

Determines if specified bits are set.
public static CheckBits ( this source, Int24 bits, bool allBits ) : bool
source this Value source.
bits Int24 Bit-mask of the bits to check.
allBits bool true to check if all are set; otherwise false.
return bool

CheckBits() public static method

Determines if specified bits are set.
public static CheckBits ( this source, System.UInt24 bits ) : bool
source this Value source.
bits System.UInt24 Bit-mask of the bits to check.
return bool

CheckBits() public static method

Determines if specified bits are set.
public static CheckBits ( this source, System.UInt24 bits, bool allBits ) : bool
source this Value source.
bits System.UInt24 Bit-mask of the bits to check.
allBits bool true to check if all are set; otherwise false.
return bool

CheckBits() public static method

Determines if specified bits are set.
public static CheckBits ( this source, byte bits ) : bool
source this Value source.
bits byte Bit-mask of the bits to check.
return bool

CheckBits() public static method

Determines if specified bits are set.
public static CheckBits ( this source, byte bits, bool allBits ) : bool
source this Value source.
bits byte Bit-mask of the bits to check.
allBits bool true to check if all are set; otherwise false.
return bool

CheckBits() public static method

Determines if specified bits are set.
public static CheckBits ( this source, int bits ) : bool
source this Value source.
bits int Bit-mask of the bits to check.
return bool

CheckBits() public static method

Determines if specified bits are set.
public static CheckBits ( this source, int bits, bool allBits ) : bool
source this Value source.
bits int Bit-mask of the bits to check.
allBits bool true to check if all are set; otherwise false.
return bool

CheckBits() public static method

Determines if specified bits are set.
public static CheckBits ( this source, long bits ) : bool
source this Value source.
bits long Bit-mask of the bits to check.
return bool

CheckBits() public static method

Determines if specified bits are set.
public static CheckBits ( this source, long bits, bool allBits ) : bool
source this Value source.
bits long Bit-mask of the bits to check.
allBits bool true to check if all are set; otherwise false.
return bool

CheckBits() public static method

Determines if specified bits are set.
public static CheckBits ( this source, sbyte bits ) : bool
source this Value source.
bits sbyte Bit-mask of the bits to check.
return bool

CheckBits() public static method

Determines if specified bits are set.
public static CheckBits ( this source, sbyte bits, bool allBits ) : bool
source this Value source.
bits sbyte Bit-mask of the bits to check.
allBits bool true to check if all are set; otherwise false.
return bool

CheckBits() public static method

Determines if specified bits are set.
public static CheckBits ( this source, short bits ) : bool
source this Value source.
bits short Bit-mask of the bits to check.
return bool

CheckBits() public static method

Determines if specified bits are set.
public static CheckBits ( this source, short bits, bool allBits ) : bool
source this Value source.
bits short Bit-mask of the bits to check.
allBits bool true to check if all are set; otherwise false.
return bool

CheckBits() public static method

Determines if specified bits are set.
public static CheckBits ( this source, uint bits ) : bool
source this Value source.
bits uint Bit-mask of the bits to check.
return bool

CheckBits() public static method

Determines if specified bits are set.
public static CheckBits ( this source, uint bits, bool allBits ) : bool
source this Value source.
bits uint Bit-mask of the bits to check.
allBits bool true to check if all are set; otherwise false.
return bool

CheckBits() public static method

Determines if specified bits are set.
public static CheckBits ( this source, ulong bits ) : bool
source this Value source.
bits ulong Bit-mask of the bits to check.
return bool

CheckBits() public static method

Determines if specified bits are set.
public static CheckBits ( this source, ulong bits, bool allBits ) : bool
source this Value source.
bits ulong Bit-mask of the bits to check.
allBits bool true to check if all are set; otherwise false.
return bool

CheckBits() public static method

Determines if specified bits are set.
public static CheckBits ( this source, ushort bits ) : bool
source this Value source.
bits ushort Bit-mask of the bits to check.
return bool

CheckBits() public static method

Determines if specified bits are set.
public static CheckBits ( this source, ushort bits, bool allBits ) : bool
source this Value source.
bits ushort Bit-mask of the bits to check.
allBits bool true to check if all are set; otherwise false.
return bool

ClearBits() public static method

Returns value with specified bits cleared.
public static ClearBits ( this source, Bits bits ) : Int24
source this Value source.
bits Bits to clear.
return Int24

ClearBits() public static method

Returns value with specified bits cleared.
public static ClearBits ( this source, Int24 bits ) : Int24
source this Value source.
bits Int24 Bit-mask of the bits to clear.
return Int24

ClearBits() public static method

Returns value with specified bits cleared.
public static ClearBits ( this source, Bits bits ) : System.UInt24
source this Value source.
bits Bits to clear.
return System.UInt24

ClearBits() public static method

Returns value with specified bits cleared.
public static ClearBits ( this source, System.UInt24 bits ) : System.UInt24
source this Value source.
bits System.UInt24 Bit-mask of the bits to clear.
return System.UInt24

ClearBits() public static method

Returns value with specified bits cleared.
public static ClearBits ( this source, Bits bits ) : byte
source this Value source.
bits Bits to clear.
return byte

ClearBits() public static method

Returns value with specified bits cleared.
public static ClearBits ( this source, byte bits ) : byte
source this Value source.
bits byte Bit-mask of the bits to clear.
return byte

ClearBits() public static method

Returns value with specified bits cleared.
public static ClearBits ( this source, Bits bits ) : int
source this Value source.
bits Bits to clear.
return int

ClearBits() public static method

Returns value with specified bits cleared.
public static ClearBits ( this source, int bits ) : int
source this Value source.
bits int Bit-mask of the bits to clear.
return int

ClearBits() public static method

Returns value with specified bits cleared.
public static ClearBits ( this source, Bits bits ) : long
source this Value source.
bits Bits to clear.
return long

ClearBits() public static method

Returns value with specified bits cleared.
public static ClearBits ( this source, long bits ) : long
source this Value source.
bits long Bit-mask of the bits to clear.
return long

ClearBits() public static method

Returns value with specified bits cleared.
public static ClearBits ( this source, Bits bits ) : sbyte
source this Value source.
bits Bits to clear.
return sbyte

ClearBits() public static method

Returns value with specified bits cleared.
public static ClearBits ( this source, sbyte bits ) : sbyte
source this Value source.
bits sbyte Bit-mask of the bits to clear.
return sbyte

ClearBits() public static method

Returns value with specified bits cleared.
public static ClearBits ( this source, Bits bits ) : short
source this Value source.
bits Bits to clear.
return short

ClearBits() public static method

Returns value with specified bits cleared.
public static ClearBits ( this source, short bits ) : short
source this Value source.
bits short Bit-mask of the bits to clear.
return short

ClearBits() public static method

Returns value with specified bits cleared.
public static ClearBits ( this source, Bits bits ) : uint
source this Value source.
bits Bits to clear.
return uint

ClearBits() public static method

Returns value with specified bits cleared.
public static ClearBits ( this source, uint bits ) : uint
source this Value source.
bits uint Bit-mask of the bits to clear.
return uint

ClearBits() public static method

Returns value with specified bits cleared.
public static ClearBits ( this source, Bits bits ) : ulong
source this Value source.
bits Bits to clear.
return ulong

ClearBits() public static method

Returns value with specified bits cleared.
public static ClearBits ( this source, ulong bits ) : ulong
source this Value source.
bits ulong Bit-mask of the bits to clear.
return ulong

ClearBits() public static method

Returns value with specified bits cleared.
public static ClearBits ( this source, Bits bits ) : ushort
source this Value source.
bits Bits to clear.
return ushort

ClearBits() public static method

Returns value with specified bits cleared.
public static ClearBits ( this source, ushort bits ) : ushort
source this Value source.
bits ushort Bit-mask of the bits to clear.
return ushort

GetMaskedValue() public static method

Returns value stored in the bits represented by the specified bitmask.
public static GetMaskedValue ( this source, Bits bitmask ) : Int24
source this Value source.
bitmask Bits that make-up the bit-mask.
return Int24

GetMaskedValue() public static method

Returns value stored in the bits represented by the specified bitmask.
public static GetMaskedValue ( this source, Int24 bitmask ) : Int24
source this Value source.
bitmask Int24 Bit-mask of the bits involved.
return Int24

GetMaskedValue() public static method

Returns value stored in the bits represented by the specified bitmask.
public static GetMaskedValue ( this source, Bits bitmask ) : System.UInt24
source this Value source.
bitmask Bits that make-up the bit-mask.
return System.UInt24

GetMaskedValue() public static method

Returns value stored in the bits represented by the specified bitmask.
public static GetMaskedValue ( this source, System.UInt24 bitmask ) : System.UInt24
source this Value source.
bitmask System.UInt24 Bit-mask of the bits involved.
return System.UInt24

GetMaskedValue() public static method

Returns value stored in the bits represented by the specified bitmask.
public static GetMaskedValue ( this source, Bits bitmask ) : byte
source this Value source.
bitmask Bits that make-up the bit-mask.
return byte

GetMaskedValue() public static method

Returns value stored in the bits represented by the specified bitmask.
public static GetMaskedValue ( this source, byte bitmask ) : byte
source this Value source.
bitmask byte Bit-mask of the bits involved.
return byte

GetMaskedValue() public static method

Returns value stored in the bits represented by the specified bitmask.
public static GetMaskedValue ( this source, Bits bitmask ) : int
source this Value source.
bitmask Bits that make-up the bit-mask.
return int

GetMaskedValue() public static method

Returns value stored in the bits represented by the specified bitmask.
public static GetMaskedValue ( this source, int bitmask ) : int
source this Value source.
bitmask int Bit-mask of the bits involved.
return int

GetMaskedValue() public static method

Returns value stored in the bits represented by the specified bitmask.
public static GetMaskedValue ( this source, Bits bitmask ) : long
source this Value source.
bitmask Bits that make-up the bit-mask.
return long

GetMaskedValue() public static method

Returns value stored in the bits represented by the specified bitmask.
public static GetMaskedValue ( this source, long bitmask ) : long
source this Value source.
bitmask long Bit-mask of the bits involved.
return long

GetMaskedValue() public static method

Returns value stored in the bits represented by the specified bitmask.
public static GetMaskedValue ( this source, Bits bitmask ) : sbyte
source this Value source.
bitmask Bits that make-up the bit-mask.
return sbyte

GetMaskedValue() public static method

Returns value stored in the bits represented by the specified bitmask.
public static GetMaskedValue ( this source, sbyte bitmask ) : sbyte
source this Value source.
bitmask sbyte Bit-mask of the bits involved.
return sbyte

GetMaskedValue() public static method

Returns value stored in the bits represented by the specified bitmask.
public static GetMaskedValue ( this source, Bits bitmask ) : short
source this Value source.
bitmask Bits that make-up the bit-mask.
return short

GetMaskedValue() public static method

Returns value stored in the bits represented by the specified bitmask.
public static GetMaskedValue ( this source, short bitmask ) : short
source this Value source.
bitmask short Bit-mask of the bits involved.
return short

GetMaskedValue() public static method

Returns value stored in the bits represented by the specified bitmask.
public static GetMaskedValue ( this source, Bits bitmask ) : uint
source this Value source.
bitmask Bits that make-up the bit-mask.
return uint

GetMaskedValue() public static method

Returns value stored in the bits represented by the specified bitmask.
public static GetMaskedValue ( this source, uint bitmask ) : uint
source this Value source.
bitmask uint Bit-mask of the bits involved.
return uint

GetMaskedValue() public static method

Returns value stored in the bits represented by the specified bitmask.
public static GetMaskedValue ( this source, Bits bitmask ) : ulong
source this Value source.
bitmask Bits that make-up the bit-mask.
return ulong

GetMaskedValue() public static method

Returns value stored in the bits represented by the specified bitmask.
public static GetMaskedValue ( this source, ulong bitmask ) : ulong
source this Value source.
bitmask ulong Bit-mask of the bits involved.
return ulong

GetMaskedValue() public static method

Returns value stored in the bits represented by the specified bitmask.
public static GetMaskedValue ( this source, Bits bitmask ) : ushort
source this Value source.
bitmask Bits that make-up the bit-mask.
return ushort

GetMaskedValue() public static method

Returns value stored in the bits represented by the specified bitmask.
public static GetMaskedValue ( this source, ushort bitmask ) : ushort
source this Value source.
bitmask ushort Bit-mask of the bits involved.
return ushort

SetBits() public static method

Returns value with specified bits set.
public static SetBits ( this source, Bits bits ) : Int24
source this Value source.
bits Bits to set.
return Int24

SetBits() public static method

Returns value with specified bits set.
public static SetBits ( this source, Int24 bits ) : Int24
source this Value source.
bits Int24 Bit-mask of the bits to set.
return Int24

SetBits() public static method

Returns value with specified bits set.
public static SetBits ( this source, Bits bits ) : System.UInt24
source this Value source.
bits Bits to set.
return System.UInt24

SetBits() public static method

Returns value with specified bits set.
public static SetBits ( this source, System.UInt24 bits ) : System.UInt24
source this Value source.
bits System.UInt24 Bit-mask of the bits to set.
return System.UInt24

SetBits() public static method

Returns value with specified bits set.
public static SetBits ( this source, Bits bits ) : byte
source this Value source.
bits Bits to set.
return byte

SetBits() public static method

Returns value with specified bits set.
public static SetBits ( this source, byte bits ) : byte
source this Value source.
bits byte Bit-mask of the bits to set.
return byte

SetBits() public static method

Returns value with specified bits set.
public static SetBits ( this source, Bits bits ) : int
source this Value source.
bits Bits to set.
return int

SetBits() public static method

Returns value with specified bits set.
public static SetBits ( this source, int bits ) : int
source this Value source.
bits int Bit-mask of the bits to set.
return int

SetBits() public static method

Returns value with specified bits set.
public static SetBits ( this source, Bits bits ) : long
source this Value source.
bits Bits to set.
return long

SetBits() public static method

Returns value with specified bits set.
public static SetBits ( this source, long bits ) : long
source this Value source.
bits long Bit-mask of the bits to set.
return long

SetBits() public static method

Returns value with specified bits set.
public static SetBits ( this source, Bits bits ) : sbyte
source this Value source.
bits Bits to set.
return sbyte

SetBits() public static method

Returns value with specified bits set.
public static SetBits ( this source, sbyte bits ) : sbyte
source this Value source.
bits sbyte Bit-mask of the bits to set.
return sbyte

SetBits() public static method

Returns value with specified bits set.
public static SetBits ( this source, Bits bits ) : short
source this Value source.
bits Bits to set.
return short

SetBits() public static method

Returns value with specified bits set.
public static SetBits ( this source, short bits ) : short
source this Value source.
bits short Bit-mask of the bits to set.
return short

SetBits() public static method

Returns value with specified bits set.
public static SetBits ( this source, Bits bits ) : uint
source this Value source.
bits Bits to set.
return uint

SetBits() public static method

Returns value with specified bits set.
public static SetBits ( this source, uint bits ) : uint
source this Value source.
bits uint Bit-mask of the bits to set.
return uint

SetBits() public static method

Returns value with specified bits set.
public static SetBits ( this source, Bits bits ) : ulong
source this Value source.
bits Bits to set.
return ulong

SetBits() public static method

Returns value with specified bits set.
public static SetBits ( this source, ulong bits ) : ulong
source this Value source.
bits ulong Bit-mask of the bits to set.
return ulong

SetBits() public static method

Returns value with specified bits set.
public static SetBits ( this source, Bits bits ) : ushort
source this Value source.
bits Bits to set.
return ushort

SetBits() public static method

Returns value with specified bits set.
public static SetBits ( this source, ushort bits ) : ushort
source this Value source.
bits ushort Bit-mask of the bits to set.
return ushort

SetMaskedValue() public static method

Returns value after setting a new value for the bits specified by the bitmask.
public static SetMaskedValue ( this source, Bits bitmask, Int24 value ) : Int24
source this Value source.
bitmask Bits that make-up the bit-mask.
value Int24 New value.
return Int24

SetMaskedValue() public static method

Returns value after setting a new value for the bits specified by the bitmask.
public static SetMaskedValue ( this source, Int24 bitmask, Int24 value ) : Int24
source this Value source.
bitmask Int24 Bit-mask of the bits involved.
value Int24 New value.
return Int24

SetMaskedValue() public static method

Returns value after setting a new value for the bits specified by the bitmask.
public static SetMaskedValue ( this source, Bits bitmask, System.UInt24 value ) : System.UInt24
source this Value source.
bitmask Bits that make-up the bit-mask.
value System.UInt24 New value.
return System.UInt24

SetMaskedValue() public static method

Returns value after setting a new value for the bits specified by the bitmask.
public static SetMaskedValue ( this source, System.UInt24 bitmask, System.UInt24 value ) : System.UInt24
source this Value source.
bitmask System.UInt24 Bit-mask of the bits involved.
value System.UInt24 New value.
return System.UInt24

SetMaskedValue() public static method

Returns value after setting a new value for the bits specified by the bitmask.
public static SetMaskedValue ( this source, Bits bitmask, byte value ) : byte
source this Value source.
bitmask Bits that make-up the bit-mask.
value byte New value.
return byte

SetMaskedValue() public static method

Returns value after setting a new value for the bits specified by the bitmask.
public static SetMaskedValue ( this source, byte bitmask, byte value ) : byte
source this Value source.
bitmask byte Bit-mask of the bits involved.
value byte New value.
return byte

SetMaskedValue() public static method

Returns value after setting a new value for the bits specified by the bitmask.
public static SetMaskedValue ( this source, Bits bitmask, int value ) : int
source this Value source.
bitmask Bits that make-up the bit-mask.
value int New value.
return int

SetMaskedValue() public static method

Returns value after setting a new value for the bits specified by the bitmask.
public static SetMaskedValue ( this source, int bitmask, int value ) : int
source this Value source.
bitmask int Bit-mask of the bits involved.
value int New value.
return int

SetMaskedValue() public static method

Returns value after setting a new value for the bits specified by the bitmask.
public static SetMaskedValue ( this source, Bits bitmask, long value ) : long
source this Value source.
bitmask Bits that make-up the bit-mask.
value long New value.
return long

SetMaskedValue() public static method

Returns value after setting a new value for the bits specified by the bitmask.
public static SetMaskedValue ( this source, long bitmask, long value ) : long
source this Value source.
bitmask long Bit-mask of the bits involved.
value long New value.
return long

SetMaskedValue() public static method

Returns value after setting a new value for the bits specified by the bitmask.
public static SetMaskedValue ( this source, Bits bitmask, sbyte value ) : sbyte
source this Value source.
bitmask Bits that make-up the bit-mask.
value sbyte New value.
return sbyte

SetMaskedValue() public static method

Returns value after setting a new value for the bits specified by the bitmask.
public static SetMaskedValue ( this source, sbyte bitmask, sbyte value ) : sbyte
source this Value source.
bitmask sbyte Bit-mask of the bits involved.
value sbyte New value.
return sbyte

SetMaskedValue() public static method

Returns value after setting a new value for the bits specified by the bitmask.
public static SetMaskedValue ( this source, Bits bitmask, short value ) : short
source this Value source.
bitmask Bits that make-up the bit-mask.
value short New value.
return short

SetMaskedValue() public static method

Returns value after setting a new value for the bits specified by the bitmask.
public static SetMaskedValue ( this source, short bitmask, short value ) : short
source this Value source.
bitmask short Bit-mask of the bits involved.
value short New value.
return short

SetMaskedValue() public static method

Returns value after setting a new value for the bits specified by the bitmask.
public static SetMaskedValue ( this source, Bits bitmask, uint value ) : uint
source this Value source.
bitmask Bits that make-up the bit-mask.
value uint New value.
return uint

SetMaskedValue() public static method

Returns value after setting a new value for the bits specified by the bitmask.
public static SetMaskedValue ( this source, uint bitmask, uint value ) : uint
source this Value source.
bitmask uint Bit-mask of the bits involved.
value uint New value.
return uint

SetMaskedValue() public static method

Returns value after setting a new value for the bits specified by the bitmask.
public static SetMaskedValue ( this source, Bits bitmask, ulong value ) : ulong
source this Value source.
bitmask Bits that make-up the bit-mask.
value ulong New value.
return ulong

SetMaskedValue() public static method

Returns value after setting a new value for the bits specified by the bitmask.
public static SetMaskedValue ( this source, ulong bitmask, ulong value ) : ulong
source this Value source.
bitmask ulong Bit-mask of the bits involved.
value ulong New value.
return ulong

SetMaskedValue() public static method

Returns value after setting a new value for the bits specified by the bitmask.
public static SetMaskedValue ( this source, Bits bitmask, ushort value ) : ushort
source this Value source.
bitmask Bits that make-up the bit-mask.
value ushort New value.
return ushort

SetMaskedValue() public static method

Returns value after setting a new value for the bits specified by the bitmask.
public static SetMaskedValue ( this source, ushort bitmask, ushort value ) : ushort
source this Value source.
bitmask ushort Bit-mask of the bits involved.
value ushort New value.
return ushort

ToggleBits() public static method

Returns value with specified bits toggled.
public static ToggleBits ( this source, Bits bits ) : Int24
source this Value source.
bits Bits to toggle.
return Int24

ToggleBits() public static method

Returns value with specified bits toggled.
public static ToggleBits ( this source, Int24 bits ) : Int24
source this Value source.
bits Int24 Bit-mask of the bits to toggle.
return Int24

ToggleBits() public static method

Returns value with specified bits toggled.
public static ToggleBits ( this source, Bits bits ) : System.UInt24
source this Value source.
bits Bits to toggle.
return System.UInt24

ToggleBits() public static method

Returns value with specified bits toggled.
public static ToggleBits ( this source, System.UInt24 bits ) : System.UInt24
source this Value source.
bits System.UInt24 Bit-mask of the bits to toggle.
return System.UInt24

ToggleBits() public static method

Returns value with specified bits toggled.
public static ToggleBits ( this source, Bits bits ) : byte
source this Value source.
bits Bits to toggle.
return byte

ToggleBits() public static method

Returns value with specified bits toggled.
public static ToggleBits ( this source, byte bits ) : byte
source this Value source.
bits byte Bit-mask of the bits to toggle.
return byte

ToggleBits() public static method

Returns value with specified bits toggled.
public static ToggleBits ( this source, Bits bits ) : int
source this Value source.
bits Bits to toggle.
return int

ToggleBits() public static method

Returns value with specified bits toggled.
public static ToggleBits ( this source, int bits ) : int
source this Value source.
bits int Bit-mask of the bits to toggle.
return int

ToggleBits() public static method

Returns value with specified bits toggled.
public static ToggleBits ( this source, Bits bits ) : long
source this Value source.
bits Bits to toggle.
return long

ToggleBits() public static method

Returns value with specified bits toggled.
public static ToggleBits ( this source, long bits ) : long
source this Value source.
bits long Bit-mask of the bits to toggle.
return long

ToggleBits() public static method

Returns value with specified bits toggled.
public static ToggleBits ( this source, Bits bits ) : sbyte
source this Value source.
bits Bits to toggle.
return sbyte

ToggleBits() public static method

Returns value with specified bits toggled.
public static ToggleBits ( this source, sbyte bits ) : sbyte
source this Value source.
bits sbyte Bit-mask of the bits to toggle.
return sbyte

ToggleBits() public static method

Returns value with specified bits toggled.
public static ToggleBits ( this source, Bits bits ) : short
source this Value source.
bits Bits to toggle.
return short

ToggleBits() public static method

Returns value with specified bits toggled.
public static ToggleBits ( this source, short bits ) : short
source this Value source.
bits short Bit-mask of the bits to toggle.
return short

ToggleBits() public static method

Returns value with specified bits toggled.
public static ToggleBits ( this source, Bits bits ) : uint
source this Value source.
bits Bits to toggle.
return uint

ToggleBits() public static method

Returns value with specified bits toggled.
public static ToggleBits ( this source, uint bits ) : uint
source this Value source.
bits uint Bit-mask of the bits to toggle.
return uint

ToggleBits() public static method

Returns value with specified bits toggled.
public static ToggleBits ( this source, Bits bits ) : ulong
source this Value source.
bits Bits to toggle.
return ulong

ToggleBits() public static method

Returns value with specified bits toggled.
public static ToggleBits ( this source, ulong bits ) : ulong
source this Value source.
bits ulong Bit-mask of the bits to toggle.
return ulong

ToggleBits() public static method

Returns value with specified bits toggled.
public static ToggleBits ( this source, Bits bits ) : ushort
source this Value source.
bits Bits to toggle.
return ushort

ToggleBits() public static method

Returns value with specified bits toggled.
public static ToggleBits ( this source, ushort bits ) : ushort
source this Value source.
bits ushort Bit-mask of the bits to toggle.
return ushort