C# 클래스 Dse.EndianBitConverter

Equivalent of System.BitConverter but let's you choose the endianness.
파일 보기 프로젝트 열기: datastax/csharp-driver-dse

공개 메소드들

메소드 설명
ToDouble ( bool isLittleEndian, byte buffer, int offset ) : double

Returns a signed 64-bit double from eight bytes at specified offset from the buffer.

ToInt64 ( bool isLittleEndian, byte buffer, int offset ) : long

Returns a signed 64-bit integer from eight bytes at specified offset from the buffer.

비공개 메소드들

메소드 설명
SetBytes ( bool isLittleEndian, byte buffer, int offset, double value ) : void

Converts an 64-bit double into an array of bytes and sets to the buffer starting at the specified offset.

SetBytes ( bool isLittleEndian, byte buffer, int offset, int value ) : void

Converts an int into an array of bytes and sets to the buffer starting at the specified offset.

SetBytes ( bool isLittleEndian, byte buffer, int offset, long value ) : void

Converts an int into an array of bytes and sets to the buffer starting at the specified offset.

ToInt32 ( bool isLittleEndian, byte buffer, int offset ) : int

Returns a signed 32-bit integer from four bytes at specified offset from the buffer.

메소드 상세

ToDouble() 공개 정적인 메소드

Returns a signed 64-bit double from eight bytes at specified offset from the buffer.
public static ToDouble ( bool isLittleEndian, byte buffer, int offset ) : double
isLittleEndian bool
buffer byte
offset int
리턴 double

ToInt64() 공개 정적인 메소드

Returns a signed 64-bit integer from eight bytes at specified offset from the buffer.
public static ToInt64 ( bool isLittleEndian, byte buffer, int offset ) : long
isLittleEndian bool
buffer byte
offset int
리턴 long