BitExtensionsBitRotR(UInt16, Int32) Method
Performs rightwise bit-rotation for the specified number of rotations.
Namespace: Gemstone.BitExtensionsAssembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.137 -- Release Build+84492f84208b356bfb930d6c506a4bce06d2449a
public static ushort BitRotR(
this ushort value,
int rotations
)
<ExtensionAttribute>
Public Shared Function BitRotR (
value As UShort,
rotations As Integer
) As UShort
public:
[ExtensionAttribute]
static unsigned short BitRotR(
unsigned short value,
int rotations
)
Gemstone.BitExtensions.BitExtensions.BitRotR = function(value, rotations);
- value UInt16
- Value used for bit-rotation.
- rotations Int32
- Number of rotations to perform.
UInt16Value that has its bits rotated to the right the specified number of times.In Visual Basic and C#, you can call this method as an instance method on any object of type
UInt16. 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).
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.