DeveelDB
20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
|
A wrapper for an array of byte. More...
Public Member Functions | |
ByteBuffer (byte[] buf, int offset, int length) | |
Constructs the buffer. More... | |
ByteBuffer (byte[] buf) | |
ByteBuffer | Write (byte[] b, int offset, int count) |
Writes a byte array into the buffer. More... | |
ByteBuffer | Write (byte[] b) |
ByteBuffer | Write (ByteBuffer buffer) |
Writes a ByteBuffer in to this buffer. More... | |
ByteBuffer | Read (byte[] b, int offset, int count) |
Reads a byte array from the buffer. More... | |
ByteBuffer | WriteInteger (int v) |
Writes an integer into the buffer at the current position. More... | |
int | ReadInt4 () |
Reads an integer from the buffer at the current position. More... | |
ByteBuffer | WriteByte (byte v) |
Writes a byte into the buffer at the current position. More... | |
byte | ReadByte () |
Reads a byte from the buffer at the current position. More... | |
ByteBuffer | WriteInt2 (short v) |
Writes a short into the buffer at the current position. More... | |
short | ReadInt2 () |
Reads a short from the buffer at the current position. More... | |
Static Public Member Functions | |
static void | WriteInteger (int value, byte[] arr, int offset) |
static char | ReadChar (byte[] arr, int offset) |
static void | WriteChar (char value, byte[] arr, int offset) |
static short | ReadInt2 (byte[] arr, int offset) |
static void | WriteInt2 (short value, byte[] arr, int offset) |
static int | ReadInt4 (byte[] arr, int offset) |
static long | ReadInt8 (byte[] arr, int offset) |
static void | WriteInt8 (long value, byte[] arr, int offset) |
static int | URShift (int number, int bits) |
Operates a shift on the given integer by the number of bits specified. More... | |
static int | URShift (int number, long bits) |
static long | URShift (long number, int bits) |
static long | URShift (long number, long bits) |
Properties | |
int | Position [get, set] |
Gets or sets the position in to the buffer. More... | |
int | Length [get] |
Returns the length of this buffer. More... | |
Private Attributes | |
readonly byte[] | buf |
The wrapped byte array itself. More... | |
int | pos |
The current position in the array. More... | |
readonly int | length |
The length of the buf array. More... | |
A wrapper for an array of byte.
This provides various functions for altering the state of the buffer.
Definition at line 27 of file ByteBuffer.cs.
|
inline |
Constructs the buffer.
buf | |
offset | |
length |
Definition at line 49 of file ByteBuffer.cs.
|
inline |
Definition at line 55 of file ByteBuffer.cs.
|
inline |
Reads a byte array from the buffer.
b | |
offset | |
count |
Definition at line 107 of file ByteBuffer.cs.
|
inline |
Reads a byte from the buffer at the current position.
Definition at line 149 of file ByteBuffer.cs.
|
inlinestatic |
Definition at line 188 of file ByteBuffer.cs.
|
inline |
Reads a short from the buffer at the current position.
Definition at line 170 of file ByteBuffer.cs.
|
inlinestatic |
Definition at line 202 of file ByteBuffer.cs.
|
inline |
Reads an integer from the buffer at the current position.
Definition at line 128 of file ByteBuffer.cs.
|
inlinestatic |
Definition at line 222 of file ByteBuffer.cs.
|
inlinestatic |
Definition at line 234 of file ByteBuffer.cs.
|
inlinestatic |
Operates a shift on the given integer by the number of bits specified.
number | The number to shift. |
bits | The number of bits to shift the given number. |
Definition at line 277 of file ByteBuffer.cs.
|
inlinestatic |
Definition at line 283 of file ByteBuffer.cs.
|
inlinestatic |
Definition at line 287 of file ByteBuffer.cs.
|
inlinestatic |
Definition at line 293 of file ByteBuffer.cs.
|
inline |
Writes a byte array into the buffer.
b | |
offset | |
count |
Definition at line 81 of file ByteBuffer.cs.
|
inline |
Definition at line 87 of file ByteBuffer.cs.
|
inline |
Writes a ByteBuffer in to this buffer.
buffer |
Definition at line 96 of file ByteBuffer.cs.
|
inline |
Writes a byte into the buffer at the current position.
v |
Definition at line 139 of file ByteBuffer.cs.
|
inlinestatic |
Definition at line 195 of file ByteBuffer.cs.
|
inline |
Writes a short into the buffer at the current position.
v |
Definition at line 160 of file ByteBuffer.cs.
|
inlinestatic |
Definition at line 212 of file ByteBuffer.cs.
|
inlinestatic |
Definition at line 252 of file ByteBuffer.cs.
|
inline |
Writes an integer into the buffer at the current position.
v |
Definition at line 118 of file ByteBuffer.cs.
|
inlinestatic |
Definition at line 176 of file ByteBuffer.cs.
|
private |
The wrapped byte array itself.
Definition at line 31 of file ByteBuffer.cs.
|
private |
The length of the buf array.
Definition at line 41 of file ByteBuffer.cs.
|
private |
The current position in the array.
Definition at line 36 of file ByteBuffer.cs.
|
get |
Returns the length of this buffer.
Definition at line 70 of file ByteBuffer.cs.
|
getset |
Gets or sets the position in to the buffer.
Definition at line 62 of file ByteBuffer.cs.