C# 클래스 Deveel.Data.Util.ByteBuffer

A wrapper for an array of byte.
This provides various functions for altering the state of the buffer.
파일 보기 프로젝트 열기: deveel/deveeldb

공개 메소드들

메소드 설명
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