C# 클래스 Dse.Auth.Sspi.ByteWriter

Reads and writes value types to byte arrays with explicit endianness.
파일 보기 프로젝트 열기: datastax/csharp-driver-dse

공개 메소드들

메소드 설명
ReadInt16_BE ( byte buffer, int position ) : Int16

Reads a 2-byte signed integer that is stored in the buffer in big-endian format. The returned value is in the native endianness.

ReadInt32_BE ( byte buffer, int position ) : Int32

Reads a 4-byte signed integer that is stored in the buffer in big-endian format. The returned value is in the native endianness.

WriteInt16_BE ( Int16 value, byte buffer, int position ) : void

Writes a 2-byte signed integer to the buffer in big-endian format.

WriteInt32_BE ( Int32 value, byte buffer, int position ) : void

Writes a 4-byte signed integer to the buffer in big-endian format.

메소드 상세

ReadInt16_BE() 공개 정적인 메소드

Reads a 2-byte signed integer that is stored in the buffer in big-endian format. The returned value is in the native endianness.
public static ReadInt16_BE ( byte buffer, int position ) : Int16
buffer byte The buffer to read.
position int The index of the first byte to read.
리턴 System.Int16

ReadInt32_BE() 공개 정적인 메소드

Reads a 4-byte signed integer that is stored in the buffer in big-endian format. The returned value is in the native endianness.
public static ReadInt32_BE ( byte buffer, int position ) : Int32
buffer byte The buffer to read.
position int The index of the first byte to read.
리턴 System.Int32

WriteInt16_BE() 공개 정적인 메소드

Writes a 2-byte signed integer to the buffer in big-endian format.
public static WriteInt16_BE ( Int16 value, byte buffer, int position ) : void
value System.Int16 The value to write to the buffer.
buffer byte The buffer to write to.
position int The index of the first byte to write to.
리턴 void

WriteInt32_BE() 공개 정적인 메소드

Writes a 4-byte signed integer to the buffer in big-endian format.
public static WriteInt32_BE ( Int32 value, byte buffer, int position ) : void
value System.Int32 The value to write to the buffer.
buffer byte The buffer to write to.
position int The index of the first byte to write to.
리턴 void