|
BitExtensionsBitRotL(Byte, Int32) Method
|
Performs rightwise bit-rotation for the specified number of rotations.
Namespace: GSFAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.205-beta+5ef4169f3b1079d8b163dd363614f656bd140924
Syntax public static byte BitRotL(
this byte value,
int rotations
)
GSF.BitExtensions.BitRotL = function(value, rotations);
View SourceParameters
- value Byte
- Value used for bit-rotation.
- rotations Int32
- Number of rotations to perform.
Return Value
ByteValue that has its bits rotated to the right the specified number of times.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Byte. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Remarks
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.
See Also