Rotates the bits of an unsigned short integer.

Namespace:  Classless.Hasher.Utilities
Assembly:  Classless.Hasher (in Classless.Hasher.dll) Version: 0.8.3649.33599

Syntax

C#
public static ushort RotateLeft(
	ushort value,
	int shift
)
Visual Basic (Declaration)
Public Shared Function RotateLeft ( _
	value As UShort, _
	shift As Integer _
) As UShort
Visual C++
public:
static unsigned short RotateLeft(
	unsigned short value, 
	int shift
)

Parameters

value
Type: System..::.UInt16
The unsigned short integer to rotate.
shift
Type: System..::.Int32
How many bits to rotate.

Return Value

The rotated unsigned short integer.

Remarks

If the shift value is negative, the result is functionally equivalent to a RotateRight() operation.

See Also