C# 클래스 NLight.Core.BinaryHelper

Contains useful functions for manipulating bits.
파일 보기 프로젝트 열기: slorion/nlight

공개 메소드들

메소드 설명
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