Свойство | Тип | Описание | |
---|---|---|---|
AddReference | void | ||
ByteBuffer | System | ||
DuplicateBuffer | void | ||
ReleaseReference | void | ||
ToArraySegment | ArraySegment |
Метод | Описание | |
---|---|---|
AdjustPosition ( int offset, int length ) : void |
Adjusts the read and write position.
|
|
Append ( int size ) : void |
Advances the write position. As a result, length is increased by size.
|
|
ByteBuffer ( byte buffer, int offset, int count, int capacity ) : System |
Initializes a new buffer from a byte array.
|
|
ByteBuffer ( int size, bool autoGrow ) : System |
Initializes a new buffer of a specified size.
|
|
Complete ( int size ) : void |
Advances the read position.
|
|
Reset ( ) : void |
Resets read and write position to the initial state.
|
|
Seek ( int seekPosition ) : void |
Sets the read position.
|
|
Shrink ( int size ) : void |
Moves back the write position. As a result, length is decreased by size.
|
|
Validate ( bool write, int dataSize ) : void |
Verifies that if the buffer has enough bytes for read or enough room for write and grow the buffer if needed.
|
Метод | Описание | |
---|---|---|
AddReference ( ) : void | ||
ByteBuffer ( byte buffer, int offset, int count, int capacity, bool autoGrow ) : System | ||
DuplicateBuffer ( int bufferSize, int dataSize, byte &buffer, int &offset, int &count ) : void | ||
ReleaseReference ( ) : void | ||
ToArraySegment ( ) : ArraySegment |
public AdjustPosition ( int offset, int length ) : void | ||
offset | int | Read position to set. |
length | int | Length from read position to set the write position. |
Результат | void |
public ByteBuffer ( byte buffer, int offset, int count, int capacity ) : System | ||
buffer | byte | The byte array. |
offset | int | The start position. |
count | int | The number of bytes. |
capacity | int | The total size of the byte array from offset. |
Результат | System |
public ByteBuffer ( int size, bool autoGrow ) : System | ||
size | int | The size in bytes. |
autoGrow | bool | If the buffer should auto-grow when a write size is larger than the buffer size. |
Результат | System |
public Complete ( int size ) : void | ||
size | int | Size to advance. |
Результат | void |
public Seek ( int seekPosition ) : void | ||
seekPosition | int | Position to set. |
Результат | void |
public Validate ( bool write, int dataSize ) : void | ||
write | bool | Operation to verify. True for write and false for read. |
dataSize | int | The size to read or write. |
Результат | void |