The ByteBuffer type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | ByteBuffer()()()() |
Constructs an empty ByteBuffer with a capacity of 256 bytes.
|
![]() | ByteBuffer(array<Byte>[]()[][]) |
Constructs a ByteBuffer object from given source with capacity and length set to source length.
|
![]() | ByteBuffer(Int32) |
Constructs an empty ByteBuffer with a capacity as specified.
|
![]() | ByteBuffer(array<Byte>[]()[][], Int32, Int32) |
Constructs an ByteBuffer from given source with capacity and length set to given length.
|
Methods
Name | Description | |
---|---|---|
![]() | Append(Byte) |
Append a byte to the end of this ByteBuffer.
|
![]() | Append(array<Byte>[]()[][]) |
Append an array of bytes to the end of this ByteBuffer.
|
![]() | Append(array<Byte>[]()[][], Int32, Int32) |
Append an array of bytes to the end of this ByteBuffer.
|
![]() | Clone |
Creates a shallow copy of the current ByteBuffer.
|
![]() | CompareTo(array<Byte>[]()[][]) |
Compare this ByteBuffer to an array of byte.
|
![]() | CompareTo(Object) |
Compare this ByteBuffer to other ByteBuffer.
|
![]() | CompareTo(ByteBuffer) |
Compare this ByteBuffer to another ByteBuffer.
|
![]() | Equals |
Equals checks whether obj is an instance of ByteBuffer with same content.
(Overrides Object..::..Equals(Object).) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | Get24BitInt |
Get 24 bit (MSB first) value from this buffer at given byte position.
|
![]() | GetBuffer |
Get a reference to internal array of byte buffer.
|
![]() | GetBytes |
Get byte array from ByteBuffer as specified by index and length.
|
![]() | GetData |
Get ByteBuffer data as byte[]
|
![]() | GetHashCode |
Get hash code.
(Overrides Object..::..GetHashCode()()()().) |
![]() | GetInt |
Get int (MSB first) value from this buffer at given byte position.
|
![]() | GetLong |
Get long (MSB first) value from this buffer at given byte position.
|
![]() | GetShort |
Get short (MSB first) value from this buffer at given byte position.
|
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | Set24BitInt |
Store a 24 bit value in this buffer at given byte position.
If index is above current length then unused bytes are set to 0,
value is appended at specified position and length is increased.
|
![]() | SetInt |
Store a int value in this buffer at given byte position.
If index is above current length then unused bytes are set to 0,
value is appended at specified position and length is increased.
|
![]() | SetLong |
Store a long value in this buffer at given byte position.
If index is above current length then unused bytes are set to 0,
value is appended at specified position and length is increased.
|
![]() | SetShort |
Store a short value in this buffer at given byte position.
If index is above current length then unused bytes are set to 0,
value is appended at specified position and length is increased.
|
![]() | ToString |
Format to string.
(Overrides Object..::..ToString()()()().) |
Properties
Name | Description | |
---|---|---|
![]() | Capacity |
Amount of bytes this ByteBuffer as maximum can hold.
|
![]() | Item |
Access content of this byte buffer.
|
![]() | Length |
Amount of bytes this ByteBuffer currently holds.
|