C# Класс Deveel.Data.Util.ByteBuffer

A wrapper for an array of byte.
This provides various functions for altering the state of the buffer.
Показать файл Открыть проект

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

Метод Описание
ByteBuffer ( byte buf ) : System
ByteBuffer ( byte buf, int offset, int length ) : System

Constructs the buffer.

Read ( byte b, int offset, int count ) : ByteBuffer

Reads a byte array from the buffer.

ReadByte ( ) : byte

Reads a byte from the buffer at the current position.

ReadChar ( byte arr, int offset ) : char
ReadInt2 ( ) : short

Reads a short from the buffer at the current position.

ReadInt2 ( byte arr, int offset ) : short
ReadInt4 ( ) : int

Reads an integer from the buffer at the current position.

ReadInt4 ( byte arr, int offset ) : int
ReadInt8 ( byte arr, int offset ) : long
URShift ( int number, int bits ) : int

Operates a shift on the given integer by the number of bits specified.

URShift ( int number, long bits ) : int
URShift ( long number, int bits ) : long
URShift ( long number, long bits ) : long
Write ( ByteBuffer buffer ) : ByteBuffer

Writes a ByteBuffer in to this buffer.

Write ( byte b ) : ByteBuffer
Write ( byte b, int offset, int count ) : ByteBuffer

Writes a byte array into the buffer.

WriteByte ( byte v ) : ByteBuffer

Writes a byte into the buffer at the current position.

WriteChar ( char value, byte arr, int offset ) : void
WriteInt2 ( short v ) : ByteBuffer

Writes a short into the buffer at the current position.

WriteInt2 ( short value, byte arr, int offset ) : void
WriteInt8 ( long value, byte arr, int offset ) : void
WriteInteger ( int v ) : ByteBuffer

Writes an integer into the buffer at the current position.

WriteInteger ( int value, byte arr, int offset ) : void

Описание методов

ByteBuffer() публичный Метод

public ByteBuffer ( byte buf ) : System
buf byte
Результат System

ByteBuffer() публичный Метод

Constructs the buffer.
public ByteBuffer ( byte buf, int offset, int length ) : System
buf byte
offset int
length int
Результат System

Read() публичный Метод

Reads a byte array from the buffer.
public Read ( byte b, int offset, int count ) : ByteBuffer
b byte
offset int
count int
Результат ByteBuffer

ReadByte() публичный Метод

Reads a byte from the buffer at the current position.
public ReadByte ( ) : byte
Результат byte

ReadChar() публичный статический Метод

public static ReadChar ( byte arr, int offset ) : char
arr byte
offset int
Результат char

ReadInt2() публичный Метод

Reads a short from the buffer at the current position.
public ReadInt2 ( ) : short
Результат short

ReadInt2() публичный статический Метод

public static ReadInt2 ( byte arr, int offset ) : short
arr byte
offset int
Результат short

ReadInt4() публичный Метод

Reads an integer from the buffer at the current position.
public ReadInt4 ( ) : int
Результат int

ReadInt4() публичный статический Метод

public static ReadInt4 ( byte arr, int offset ) : int
arr byte
offset int
Результат int

ReadInt8() публичный статический Метод

public static ReadInt8 ( byte arr, int offset ) : long
arr byte
offset int
Результат long

URShift() публичный статический Метод

Operates a shift on the given integer by the number of bits specified.
public static URShift ( int number, int bits ) : int
number int The number to shift.
bits int The number of bits to shift the given number.
Результат int

URShift() публичный статический Метод

public static URShift ( int number, long bits ) : int
number int
bits long
Результат int

URShift() публичный статический Метод

public static URShift ( long number, int bits ) : long
number long
bits int
Результат long

URShift() публичный статический Метод

public static URShift ( long number, long bits ) : long
number long
bits long
Результат long

Write() публичный Метод

Writes a ByteBuffer in to this buffer.
public Write ( ByteBuffer buffer ) : ByteBuffer
buffer ByteBuffer
Результат ByteBuffer

Write() публичный Метод

public Write ( byte b ) : ByteBuffer
b byte
Результат ByteBuffer

Write() публичный Метод

Writes a byte array into the buffer.
public Write ( byte b, int offset, int count ) : ByteBuffer
b byte
offset int
count int
Результат ByteBuffer

WriteByte() публичный Метод

Writes a byte into the buffer at the current position.
public WriteByte ( byte v ) : ByteBuffer
v byte
Результат ByteBuffer

WriteChar() публичный статический Метод

public static WriteChar ( char value, byte arr, int offset ) : void
value char
arr byte
offset int
Результат void

WriteInt2() публичный Метод

Writes a short into the buffer at the current position.
public WriteInt2 ( short v ) : ByteBuffer
v short
Результат ByteBuffer

WriteInt2() публичный статический Метод

public static WriteInt2 ( short value, byte arr, int offset ) : void
value short
arr byte
offset int
Результат void

WriteInt8() публичный статический Метод

public static WriteInt8 ( long value, byte arr, int offset ) : void
value long
arr byte
offset int
Результат void

WriteInteger() публичный Метод

Writes an integer into the buffer at the current position.
public WriteInteger ( int v ) : ByteBuffer
v int
Результат ByteBuffer

WriteInteger() публичный статический Метод

public static WriteInteger ( int value, byte arr, int offset ) : void
value int
arr byte
offset int
Результат void