C# Класс NLight.Core.BinaryHelper

Contains useful functions for manipulating bits.
Показать файл Открыть проект

Открытые методы

Метод Описание
Reverse ( long value, int significantBitCount ) : long

Reverses the number of significant bits specified.

RotateLeft ( int value, int count ) : int

Rotates the bits to the left.

RotateRight ( int value, int count ) : int

Rotates the bits to the right.

Описание методов

Reverse() публичный статический Метод

Reverses the number of significant bits specified.
public static Reverse ( long value, int significantBitCount ) : long
value long The value to reverse.
significantBitCount int The number of significant bits to reverse.
Результат long

RotateLeft() публичный статический Метод

Rotates the bits to the left.
public static RotateLeft ( int value, int count ) : int
value int The value to rotate.
count int The number of bits to rotate.
Результат int

RotateRight() публичный статический Метод

Rotates the bits to the right.
public static RotateRight ( int value, int count ) : int
value int The value to rotate.
count int The number of bits to rotate.
Результат int