C# 클래스 Snappy.Sharp.Utilities

파일 보기 프로젝트 열기: jeffesp/Snappy.Sharp

공개 메소드들

메소드 설명
CalculateCrc ( byte b, int off, int len ) : uint
GetEightBytes ( byte source, int index ) : ulong

> Reads 8 bytes from memory into a uint. Does not take host enianness into account.

GetFourBytes ( byte source, int index ) : uint

> Reads 4 bytes from memory into a uint. Does not take host enianness into account.

Log2Floor ( uint x ) : uint
NativeIntPtrSize ( ) : int
NumberOfLeadingZeros ( uint x ) : uint
NumberOfOnes ( uint x ) : uint
NumberOfTrailingZeros ( uint x ) : uint
NumberOfTrailingZeros ( ulong c ) : uint
UnalignedCopy64 ( byte source, int sourceIndex, byte dest, int destIndex ) : void

Copies 64 bits (8 bytes) from source array starting at sourceIndex into dest array starting at destIndex.

The name comes from the original Snappy C++ source. I don't think there is a good way to look at things in an aligned manner in the .NET Framework.

메소드 상세

CalculateCrc() 공개 정적인 메소드

public static CalculateCrc ( byte b, int off, int len ) : uint
b byte
off int
len int
리턴 uint

GetEightBytes() 공개 정적인 메소드

> Reads 8 bytes from memory into a uint. Does not take host enianness into account.
public static GetEightBytes ( byte source, int index ) : ulong
source byte
index int
리턴 ulong

GetFourBytes() 공개 정적인 메소드

> Reads 4 bytes from memory into a uint. Does not take host enianness into account.
public static GetFourBytes ( byte source, int index ) : uint
source byte
index int
리턴 uint

Log2Floor() 공개 정적인 메소드

public static Log2Floor ( uint x ) : uint
x uint
리턴 uint

NativeIntPtrSize() 공개 정적인 메소드

public static NativeIntPtrSize ( ) : int
리턴 int

NumberOfLeadingZeros() 공개 정적인 메소드

public static NumberOfLeadingZeros ( uint x ) : uint
x uint
리턴 uint

NumberOfOnes() 공개 정적인 메소드

public static NumberOfOnes ( uint x ) : uint
x uint
리턴 uint

NumberOfTrailingZeros() 공개 정적인 메소드

public static NumberOfTrailingZeros ( uint x ) : uint
x uint
리턴 uint

NumberOfTrailingZeros() 공개 정적인 메소드

public static NumberOfTrailingZeros ( ulong c ) : uint
c ulong
리턴 uint

UnalignedCopy64() 공개 정적인 메소드

Copies 64 bits (8 bytes) from source array starting at sourceIndex into dest array starting at destIndex.
The name comes from the original Snappy C++ source. I don't think there is a good way to look at things in an aligned manner in the .NET Framework.
public static UnalignedCopy64 ( byte source, int sourceIndex, byte dest, int destIndex ) : void
source byte The source array.
sourceIndex int Index to start copying.
dest byte The destination array.
destIndex int Index to start writing.
리턴 void