Extends
jls.lang.Buffer.
The buffer class provides facilities to get and put datas from/to a native byte array.
Defined in: ByteBuffer.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
| Method Attributes | Method Name and Description |
|---|---|
| <static> |
jls.lang.ByteBuffer.allocate(capacity)
Allocates a new buffer.
|
|
Returns the native byte array of this buffer.
|
|
|
Creates a new buffer sharing the native byte array.
|
|
|
free()
Free the associated byte array.
|
|
| <static> |
jls.lang.ByteBuffer.fromString(s, csn)
TODO Remove
|
|
getByte(signed)
Gets a byte from this buffer at the current position, and then increments the position.
|
|
|
putByte(b)
Puts a byte into this buffer at the current position, and then increments the position.
|
|
|
slice()
Creates a new buffer starting at the current position and with the remaining bytes.
|
|
| <static> |
jls.lang.ByteBuffer.wrap(barray, offset, length)
Wraps an existing native byte array into a new buffer.
|