![]() |
Diffusion .NET Classic API - Core and Common
5.9.4
|
Base byte buffer class. More...
Public Member Functions | |
virtual void | Acquire () |
ByteBufferBase | Clear () |
Resets the limit to the length and sets the position to zero. More... | |
ByteBufferBase | Compact () |
Compact this buffer. More... | |
ByteBufferBase | Expand (int expectedRemaining) |
Expand the buffer. More... | |
ByteBufferBase | Expand (int position, int expectedRemaining) |
Expand the buffer. More... | |
ByteBufferBase | Flip () |
Sets the limit to the position, and sets the position to 0. More... | |
byte | Get () |
Gets the byte from the current position. More... | |
byte | Get (int position) |
Gets the byte at a given position. More... | |
void | Get (byte[] buffer) |
Gets the buffer. More... | |
void | Get (byte[] buffer, int offset, int length) |
Gets the buffer. More... | |
void | Get (int position, byte[] buffer, int offset, int length) |
Gets the buffer. More... | |
void | Get (int position, ByteBuffer buffer, int offset, int length) |
Gets the buffer. More... | |
char | GetChar () |
Gets a character at the current position. More... | |
char | GetChar (int position) |
Gets a character at a given position. More... | |
string | GetHexDump () |
Gets a hexadecimal dump of this buffer. More... | |
short | GetInt16 () |
Gets a short at the current position. More... | |
short | GetInt16 (int position) |
Gets a short at a given position. More... | |
int | GetInt32 () |
Gets a uint32 at the current position. More... | |
int | GetInt32 (int position) |
Gets a uint32 at a given position. More... | |
long | GetInt64 () |
Gets a uint64 at the current position. More... | |
long | GetInt64 (int position) |
Gets a uint64 at a given position. More... | |
sbyte | GetSByte () |
sbyte | GetSByte (int position) |
ushort | GetUInt16 () |
ushort | GetUInt16 (int position) |
uint | GetUInt32 () |
uint | GetUInt32 (int position) |
ulong | GetUInt64 () |
ulong | GetUInt64 (int position) |
ByteBufferBase | Put (params byte[] data) |
ByteBufferBase | PutRange (byte[] data) |
ByteBufferBase | PutRange (byte[] data, bool incrementPosition) |
ByteBufferBase | Put (ByteBufferBase data) |
ByteBufferBase | Put (byte value) |
ByteBufferBase | Put (char value) |
ByteBufferBase | PutUtf8 (string str) |
ByteBufferBase | Put (short value) |
ByteBufferBase | Put (int value) |
ByteBufferBase | Put (long value) |
ByteBufferBase | Put (sbyte value) |
ByteBufferBase | Put (ushort value) |
ByteBufferBase | Put (uint value) |
ByteBufferBase | Put (ulong value) |
ByteBufferBase | Put (byte[] buffer, bool incrementPosition) |
ByteBufferBase | Put (int position, ByteBufferBase data) |
ByteBufferBase | Put (int position, byte value) |
ByteBufferBase | Put (int position, char value) |
ByteBufferBase | Put (int position, short value) |
ByteBufferBase | Put (int position, int value) |
ByteBufferBase | Put (int position, long value) |
ByteBufferBase | Put (int position, sbyte value) |
ByteBufferBase | Put (int position, ushort value) |
ByteBufferBase | Put (int position, uint value) |
ByteBufferBase | Put (int position, ulong value) |
ByteBufferBase | Put (byte[] buffer, int offset, int length, bool incrementPosition=true) |
ByteBufferBase | Put (int position, byte[] buffer, int offset, int length) |
virtual void | Release () |
ByteBufferBase | Rewind () |
ByteBufferBase | Skip (int numBytes) |
ByteBufferBase | Slice () |
override string | ToString () |
Static Public Member Functions | |
static void | SetAllocator (IByteBufferAllocator allocator) |
Protected Member Functions | |
abstract void | DoCompact () |
abstract byte | DoReadByte (int position) |
abstract void | DoReadBytes (int position, byte[] dest, int offset, int length) |
abstract void | DoResize (int newSize) |
abstract void | DoWrite (int position, byte value) |
abstract void | DoWrite (int position, byte[] src, int offset, int length) |
Static Protected Attributes | |
static IByteBufferAllocator | THE_ALLOCATOR = new ByteBufferAllocator() |
The byte buffer allocator. More... | |
Properties | |
abstract byte[] | Bytes [get] |
Get the bytes in the buffer. More... | |
abstract int | Length [get] |
Get the number of bytes in the buffer. More... | |
abstract int | Capacity [get] |
Get the capacity of the buffer. More... | |
bool | HasRemaining [get] |
Do we have any bytes remaining? More... | |
bool | IsAutoExpand [get, set] |
Is this an auto-expanding buffer? More... | |
int | Limit [get, set] |
Get/set the limit of the buffer. More... | |
int | Position [get, set] |
Get/set the currently indexed position into the buffer. More... | |
int | Remaining [get] |
Returns how many bytes are remaining in the buffer. More... | |
Base byte buffer class.
|
virtual |
ByteBufferBase PushTechnology.DiffusionCore.Buffering.ByteBufferBase.Clear | ( | ) |
Resets the limit to the length and sets the position to zero.
ByteBufferBase PushTechnology.DiffusionCore.Buffering.ByteBufferBase.Compact | ( | ) |
Compact this buffer.
|
protectedpure virtual |
Implemented in PushTechnology.DiffusionCore.Buffering.ByteBuffer.
|
protectedpure virtual |
|
protectedpure virtual |
position | |
dest | |
offset | |
length |
Implemented in PushTechnology.DiffusionCore.Buffering.ByteBuffer.
|
protectedpure virtual |
newSize |
Implemented in PushTechnology.DiffusionCore.Buffering.ByteBuffer.
|
protectedpure virtual |
position | |
value |
Implemented in PushTechnology.DiffusionCore.Buffering.ByteBuffer.
|
protectedpure virtual |
position | |
src | |
offset | |
length |
Implemented in PushTechnology.DiffusionCore.Buffering.ByteBuffer.
ByteBufferBase PushTechnology.DiffusionCore.Buffering.ByteBufferBase.Expand | ( | int | expectedRemaining | ) |
Expand the buffer.
expectedRemaining | The number of bytes to expand the buffer by. |
ByteBufferBase PushTechnology.DiffusionCore.Buffering.ByteBufferBase.Expand | ( | int | position, |
int | expectedRemaining | ||
) |
Expand the buffer.
position | The start position. |
expectedRemaining |
ByteBufferBase PushTechnology.DiffusionCore.Buffering.ByteBufferBase.Flip | ( | ) |
Sets the limit to the position, and sets the position to 0.
byte PushTechnology.DiffusionCore.Buffering.ByteBufferBase.Get | ( | ) |
Gets the byte from the current position.
byte PushTechnology.DiffusionCore.Buffering.ByteBufferBase.Get | ( | int | position | ) |
Gets the byte at a given position.
position |
void PushTechnology.DiffusionCore.Buffering.ByteBufferBase.Get | ( | byte[] | buffer | ) |
Gets the buffer.
buffer |
void PushTechnology.DiffusionCore.Buffering.ByteBufferBase.Get | ( | byte[] | buffer, |
int | offset, | ||
int | length | ||
) |
Gets the buffer.
buffer | |
offset | |
length |
void PushTechnology.DiffusionCore.Buffering.ByteBufferBase.Get | ( | int | position, |
byte[] | buffer, | ||
int | offset, | ||
int | length | ||
) |
Gets the buffer.
position | |
buffer | |
offset | |
length |
void PushTechnology.DiffusionCore.Buffering.ByteBufferBase.Get | ( | int | position, |
ByteBuffer | buffer, | ||
int | offset, | ||
int | length | ||
) |
Gets the buffer.
position | |
buffer | |
offset | |
length |
char PushTechnology.DiffusionCore.Buffering.ByteBufferBase.GetChar | ( | ) |
Gets a character at the current position.
char PushTechnology.DiffusionCore.Buffering.ByteBufferBase.GetChar | ( | int | position | ) |
Gets a character at a given position.
position |
string PushTechnology.DiffusionCore.Buffering.ByteBufferBase.GetHexDump | ( | ) |
Gets a hexadecimal dump of this buffer.
short PushTechnology.DiffusionCore.Buffering.ByteBufferBase.GetInt16 | ( | ) |
Gets a short at the current position.
short PushTechnology.DiffusionCore.Buffering.ByteBufferBase.GetInt16 | ( | int | position | ) |
Gets a short at a given position.
position |
int PushTechnology.DiffusionCore.Buffering.ByteBufferBase.GetInt32 | ( | ) |
Gets a uint32 at the current position.
int PushTechnology.DiffusionCore.Buffering.ByteBufferBase.GetInt32 | ( | int | position | ) |
Gets a uint32 at a given position.
position |
long PushTechnology.DiffusionCore.Buffering.ByteBufferBase.GetInt64 | ( | ) |
Gets a uint64 at the current position.
long PushTechnology.DiffusionCore.Buffering.ByteBufferBase.GetInt64 | ( | int | position | ) |
Gets a uint64 at a given position.
position |
sbyte PushTechnology.DiffusionCore.Buffering.ByteBufferBase.GetSByte | ( | ) |
sbyte PushTechnology.DiffusionCore.Buffering.ByteBufferBase.GetSByte | ( | int | position | ) |
position |
ushort PushTechnology.DiffusionCore.Buffering.ByteBufferBase.GetUInt16 | ( | ) |
ushort PushTechnology.DiffusionCore.Buffering.ByteBufferBase.GetUInt16 | ( | int | position | ) |
position |
uint PushTechnology.DiffusionCore.Buffering.ByteBufferBase.GetUInt32 | ( | ) |
uint PushTechnology.DiffusionCore.Buffering.ByteBufferBase.GetUInt32 | ( | int | position | ) |
position |
ulong PushTechnology.DiffusionCore.Buffering.ByteBufferBase.GetUInt64 | ( | ) |
ulong PushTechnology.DiffusionCore.Buffering.ByteBufferBase.GetUInt64 | ( | int | position | ) |
position |
ByteBufferBase PushTechnology.DiffusionCore.Buffering.ByteBufferBase.Put | ( | params byte[] | data | ) |
data |
ByteBufferBase PushTechnology.DiffusionCore.Buffering.ByteBufferBase.Put | ( | ByteBufferBase | data | ) |
data |
ByteBufferBase PushTechnology.DiffusionCore.Buffering.ByteBufferBase.Put | ( | byte | value | ) |
value |
ByteBufferBase PushTechnology.DiffusionCore.Buffering.ByteBufferBase.Put | ( | char | value | ) |
value |
ByteBufferBase PushTechnology.DiffusionCore.Buffering.ByteBufferBase.Put | ( | short | value | ) |
value |
ByteBufferBase PushTechnology.DiffusionCore.Buffering.ByteBufferBase.Put | ( | int | value | ) |
value |
ByteBufferBase PushTechnology.DiffusionCore.Buffering.ByteBufferBase.Put | ( | long | value | ) |
value |
ByteBufferBase PushTechnology.DiffusionCore.Buffering.ByteBufferBase.Put | ( | sbyte | value | ) |
value |
ByteBufferBase PushTechnology.DiffusionCore.Buffering.ByteBufferBase.Put | ( | ushort | value | ) |
value |
ByteBufferBase PushTechnology.DiffusionCore.Buffering.ByteBufferBase.Put | ( | uint | value | ) |
value |
ByteBufferBase PushTechnology.DiffusionCore.Buffering.ByteBufferBase.Put | ( | ulong | value | ) |
value |
ByteBufferBase PushTechnology.DiffusionCore.Buffering.ByteBufferBase.Put | ( | byte[] | buffer, |
bool | incrementPosition | ||
) |
buffer | |
incrementPosition |
ByteBufferBase PushTechnology.DiffusionCore.Buffering.ByteBufferBase.Put | ( | int | position, |
ByteBufferBase | data | ||
) |
position | |
data |
ByteBufferBase PushTechnology.DiffusionCore.Buffering.ByteBufferBase.Put | ( | int | position, |
byte | value | ||
) |
position | |
value |
ByteBufferBase PushTechnology.DiffusionCore.Buffering.ByteBufferBase.Put | ( | int | position, |
char | value | ||
) |
position | |
value |
ByteBufferBase PushTechnology.DiffusionCore.Buffering.ByteBufferBase.Put | ( | int | position, |
short | value | ||
) |
position | |
value |
ByteBufferBase PushTechnology.DiffusionCore.Buffering.ByteBufferBase.Put | ( | int | position, |
int | value | ||
) |
position | |
value |
ByteBufferBase PushTechnology.DiffusionCore.Buffering.ByteBufferBase.Put | ( | int | position, |
long | value | ||
) |
position | |
value |
ByteBufferBase PushTechnology.DiffusionCore.Buffering.ByteBufferBase.Put | ( | int | position, |
sbyte | value | ||
) |
position | |
value |
ByteBufferBase PushTechnology.DiffusionCore.Buffering.ByteBufferBase.Put | ( | int | position, |
ushort | value | ||
) |
position | |
value |
ByteBufferBase PushTechnology.DiffusionCore.Buffering.ByteBufferBase.Put | ( | int | position, |
uint | value | ||
) |
position | |
value |
ByteBufferBase PushTechnology.DiffusionCore.Buffering.ByteBufferBase.Put | ( | int | position, |
ulong | value | ||
) |
position | |
value |
ByteBufferBase PushTechnology.DiffusionCore.Buffering.ByteBufferBase.Put | ( | byte[] | buffer, |
int | offset, | ||
int | length, | ||
bool | incrementPosition = true |
||
) |
buffer | |
offset | |
length | |
incrementPosition |
ByteBufferBase PushTechnology.DiffusionCore.Buffering.ByteBufferBase.Put | ( | int | position, |
byte[] | buffer, | ||
int | offset, | ||
int | length | ||
) |
position | |
buffer | |
offset | |
length |
ByteBufferBase PushTechnology.DiffusionCore.Buffering.ByteBufferBase.PutRange | ( | byte[] | data | ) |
data |
ByteBufferBase PushTechnology.DiffusionCore.Buffering.ByteBufferBase.PutRange | ( | byte[] | data, |
bool | incrementPosition | ||
) |
data | |
incrementPosition |
ByteBufferBase PushTechnology.DiffusionCore.Buffering.ByteBufferBase.PutUtf8 | ( | string | str | ) |
str |
|
virtual |
ByteBufferBase PushTechnology.DiffusionCore.Buffering.ByteBufferBase.Rewind | ( | ) |
|
static |
allocator |
ByteBufferBase PushTechnology.DiffusionCore.Buffering.ByteBufferBase.Skip | ( | int | numBytes | ) |
numBytes |
ByteBufferBase PushTechnology.DiffusionCore.Buffering.ByteBufferBase.Slice | ( | ) |
override string PushTechnology.DiffusionCore.Buffering.ByteBufferBase.ToString | ( | ) |
|
staticprotected |
The byte buffer allocator.
|
get |
Get the bytes in the buffer.
|
get |
Get the capacity of the buffer.
|
get |
Do we have any bytes remaining?
|
getset |
Is this an auto-expanding buffer?
|
get |
Get the number of bytes in the buffer.
|
getset |
Get/set the limit of the buffer.
|
getset |
Get/set the currently indexed position into the buffer.
|
get |
Returns how many bytes are remaining in the buffer.