The ByteBuffer type exposes the following members.

Methods

  NameDescription
Public methodStatic memberAllocate
Allocates a new ByteBuffer instance
Public methodArray
The underlying storage for the ByteBuffer
Public methodCompact
Compacts the buffer by removing leading bytes up to the buffer position and decrements the limit and position values accordingly.
Public methodDuplicate
Creates a copy of the buffer.
Public methodEquals (Inherited from Object.)
Public methodExpand
Expands the buffer to support the expected number of remaining bytes after the current position.
Public methodExpandAt
Expands the buffer to support the expected number of remaining bytes after the specified index.
Public methodFill
Fills the buffer with a repeated number of zeros.
Public methodFillWith
Fills the buffer with a number of repeated bytes.
Protected methodFinalize (Inherited from Object.)
Public methodFlip
Flips the buffer. The limit is set to the current position, the position is set to zero, and the mark is reset.
Public methodGet()()()()
Returns a single byte from the buffer at the current position
Public methodGet(array<Byte>[]()[][])
Public methodGet(array<Byte>[]()[][], Int32, Int32)
Public methodGetAt
Returns a single byte from the buffer at the specified index
Public methodGetBytes
Reads specified number of bytes to the target array
Public methodGetHashCode (Inherited from Object.)
Public methodGetHexDump
Returns a hex dump of this buffer.
Public methodGetInt
Returns a four-byte number from the buffer at the current position
Public methodGetIntAt
Returns a four-byte number from the buffer at the specified index
Public methodGetLong
Returns an eight-byte number from the buffer at the current position
Public methodGetLongAt
Returns an eight-byte number from the buffer at the specified index
Public methodGetMediumInt
Returns a three-byte number from the buffer at the current position
Public methodGetMediumIntAt
Returns a three-byte number from the buffer at the specified index
Public methodGetPrefixedString
Returns a length-prefixed string from the buffer at the current position
Public methodGetShort
Returns a two-byte number from the buffer at the current position
Public methodGetShortAt
Returns a two-byte number from the buffer at the specified index
Public methodGetString
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.
Public methodGetType (Inherited from Object.)
Public methodGetUnsigned
Returns an unsigned one-byte number from the buffer at the current position
Public methodGetUnsignedInt
Returns an unsigned four-byte number from the buffer at the current position
Public methodGetUnsignedMediumInt
Returns an unsigned three-byte number from the buffer at the current position
Public methodGetUnsignedShort
Returns an unsigned two-byte number from the buffer at the current position
Public methodHasRemaining
Returns true if this buffer has remaining bytes, false otherwise
Public methodIndexOf
Returns the index of the specified byte in the buffer.
Public methodMark
Marks a position in the buffer
Public methodMarkValue
Returns the mark position
Protected methodMemberwiseClone (Inherited from Object.)
Public methodPut
Puts a single byte into the buffer at the current position.
Public methodPutAt
Puts a single byte into the buffer at ths specified index.
Public methodPutBuffer(ByteBuffer)
Puts a ByteBuffer into the buffer at the current position
Public methodPutBuffer(ByteBuffer, Int32)
Puts a ByteBuffer into the buffer at the current position with specified maximum length
Public methodPutBufferAt(Int32, ByteBuffer)
Puts a ByteBuffer into the buffer at the specified index
Public methodPutBufferAt(Int32, ByteBuffer, Int32)
Puts a ByteBuffer into the buffer at the specified index
Public methodPutBytes(array<Byte>[]()[][])
Puts a byte array into the buffer at the current position
Public methodPutBytes(array<Byte>[]()[][], Int32, Int32)
Puts a byte array into the buffer at the current position
Public methodPutBytesAt
Puts a byte array into the buffer at the specified index
Public methodPutInt
Puts a four-byte number into the buffer at the current position
Public methodPutIntAt
Puts a four-byte number into the buffer at the specified index
Public methodPutLong
Puts an eight-byte number into the buffer at the current position
Public methodPutLongAt
Puts an eight-byte number into the buffer at the specified index
Public methodPutMediumInt
Puts a three-byte number into the buffer at the current position
Public methodPutMediumIntAt
Puts a three-byte number into the buffer at the specified index
Public methodPutPrefixedString
Puts a length-prefixed string into the buffer at the current position
Public methodPutShort
Puts a two-byte number into the buffer at the current position
Public methodPutShortAt
Puts a two-byte number into the buffer at the specified index
Public methodPutString
Puts a string into the buffer at the specified index, using the character set to encode the string as bytes.
Public methodPutUnsignedInt
Put an Unsigned Int into the ByteBuffer
Public methodPutUnsignedShort
Put an Unsigned Short integer into the ByteBuffer
Public methodRemaining
Returns the number of bytes remaining from the current position to the limit.
Public methodReset
Resets the buffer position using the mark
Public methodRewind
Rewinds the buffer. The position is set to zero and the mark is reset.
Public methodSetOrder
Sets the byte endianness of the buffer.
Public methodSkip
Skips the specified number of bytes from the current position.
Public methodSlice
Returns a sliced buffer, setting the position to zero, and decrementing the limit accordingly.
Public methodToString
Returns the string representation of the buffer.
(Overrides Object..::..ToString()()()().)
Public methodStatic memberWrap(array<Byte>[]()[][])
Wraps a byte array as a new ByteBuffer instance
Public methodStatic memberWrap(array<Byte>[]()[][], Int32, Int32)
Wraps a partial byte array as a new ByteBuffer instance.

See Also