C# Класс Dse.Auth.Sspi.ByteWriter

Reads and writes value types to byte arrays with explicit endianness.
Показать файл Открыть проект

Открытые методы

Метод Описание
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