The ByteBuffer type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| Allocate |
Allocates a new ByteBuffer instance
| |
| Array |
The underlying storage for the ByteBuffer
| |
| Compact |
Compacts the buffer by removing leading bytes up to the
buffer position and decrements the limit and position
values accordingly.
| |
| Duplicate |
Creates a copy of the buffer.
| |
| Equals | (Inherited from Object.) | |
| Expand |
Expands the buffer to support the expected number of remaining bytes
after the current position.
| |
| ExpandAt |
Expands the buffer to support the expected number of remaining bytes
after the specified index.
| |
| Fill |
Fills the buffer with a repeated number of zeros.
| |
| FillWith |
Fills the buffer with a number of repeated bytes.
| |
| Finalize | (Inherited from Object.) | |
| Flip |
Flips the buffer. The limit is set to the current position,
the position is set to zero, and the mark is reset.
| |
| Get()()()() |
Returns a single byte from the buffer at the current position
| |
| Get(array<Byte>[]()[][]) | ||
| Get(array<Byte>[]()[][], Int32, Int32) | ||
| GetAt |
Returns a single byte from the buffer at the specified index
| |
| GetBytes |
Reads specified number of bytes to the target array
| |
| GetHashCode | (Inherited from Object.) | |
| GetHexDump |
Returns a hex dump of this buffer.
| |
| GetInt |
Returns a four-byte number from the buffer at the current position
| |
| GetIntAt |
Returns a four-byte number from the buffer at the specified index
| |
| GetLong |
Returns an eight-byte number from the buffer at the current position
| |
| GetLongAt |
Returns an eight-byte number from the buffer at the specified index
| |
| GetMediumInt |
Returns a three-byte number from the buffer at the current position
| |
| GetMediumIntAt |
Returns a three-byte number from the buffer at the specified index
| |
| GetPrefixedString |
Returns a length-prefixed string from the buffer at the current position
| |
| GetShort |
Returns a two-byte number from the buffer at the current position
| |
| GetShortAt |
Returns a two-byte number from the buffer at the specified index
| |
| GetString |
Returns a null-terminated string from the buffer at the current position.
If the end of buffer if reached before discovering a null terminator byte,
then the decoded string includes all bytes up to the end of the buffer.
| |
| GetType | (Inherited from Object.) | |
| GetUnsigned |
Returns an unsigned one-byte number from the buffer at the current position
| |
| GetUnsignedInt |
Returns an unsigned four-byte number from the buffer at the current position
| |
| GetUnsignedMediumInt |
Returns an unsigned three-byte number from the buffer at the current position
| |
| GetUnsignedShort |
Returns an unsigned two-byte number from the buffer at the current position
| |
| HasRemaining |
Returns true if this buffer has remaining bytes, false otherwise
| |
| IndexOf |
Returns the index of the specified byte in the buffer.
| |
| Mark |
Marks a position in the buffer
| |
| MarkValue |
Returns the mark position
| |
| MemberwiseClone | (Inherited from Object.) | |
| Put |
Puts a single byte into the buffer at the current position.
| |
| PutAt |
Puts a single byte into the buffer at ths specified index.
| |
| PutBuffer(ByteBuffer) |
Puts a ByteBuffer into the buffer at the current position
| |
| PutBuffer(ByteBuffer, Int32) |
Puts a ByteBuffer into the buffer at the current position with specified maximum length
| |
| PutBufferAt(Int32, ByteBuffer) |
Puts a ByteBuffer into the buffer at the specified index
| |
| PutBufferAt(Int32, ByteBuffer, Int32) |
Puts a ByteBuffer into the buffer at the specified index
| |
| PutBytes(array<Byte>[]()[][]) |
Puts a byte array into the buffer at the current position
| |
| PutBytes(array<Byte>[]()[][], Int32, Int32) |
Puts a byte array into the buffer at the current position
| |
| PutBytesAt |
Puts a byte array into the buffer at the specified index
| |
| PutInt |
Puts a four-byte number into the buffer at the current position
| |
| PutIntAt |
Puts a four-byte number into the buffer at the specified index
| |
| PutLong |
Puts an eight-byte number into the buffer at the current position
| |
| PutLongAt |
Puts an eight-byte number into the buffer at the specified index
| |
| PutMediumInt |
Puts a three-byte number into the buffer at the current position
| |
| PutMediumIntAt |
Puts a three-byte number into the buffer at the specified index
| |
| PutPrefixedString |
Puts a length-prefixed string into the buffer at the current position
| |
| PutShort |
Puts a two-byte number into the buffer at the current position
| |
| PutShortAt |
Puts a two-byte number into the buffer at the specified index
| |
| PutString |
Puts a string into the buffer at the specified index, using the
character set to encode the string as bytes.
| |
| PutUnsignedInt |
Put an Unsigned Int into the ByteBuffer
| |
| PutUnsignedShort |
Put an Unsigned Short integer into the ByteBuffer
| |
| Remaining |
Returns the number of bytes remaining from the current position to the limit.
| |
| Reset |
Resets the buffer position using the mark
| |
| Rewind |
Rewinds the buffer. The position is set to zero and the mark is reset.
| |
| SetOrder |
Sets the byte endianness of the buffer.
| |
| Skip |
Skips the specified number of bytes from the current position.
| |
| Slice |
Returns a sliced buffer, setting the position to zero, and decrementing
the limit accordingly.
| |
| ToString |
Returns the string representation of the buffer.
(Overrides Object..::..ToString()()()().) | |
| Wrap(array<Byte>[]()[][]) |
Wraps a byte array as a new ByteBuffer instance
| |
| Wrap(array<Byte>[]()[][], Int32, Int32) |
Wraps a partial byte array as a new ByteBuffer instance.
|