C# Class Dse.Auth.Sspi.ByteWriter

Reads and writes value types to byte arrays with explicit endianness.
Datei anzeigen Open project: datastax/csharp-driver-dse

Public Methods

Method Description
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.

Method Details

ReadInt16_BE() public static method

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.
return System.Int16

ReadInt32_BE() public static method

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.
return System.Int32

WriteInt16_BE() public static method

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.
return void

WriteInt32_BE() public static method

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.
return void