A container for data of a specific primitive type.
Defined in: Buffer.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
| Method Attributes | Method Name and Description |
|---|---|
|
capacity()
Returns this buffer's capacity.
|
|
|
clear()
Clears this buffer, setting the position to zero and the limit to the capacity.
|
|
|
flip()
Flips this buffer, setting the limit to the position and the position to zero.
|
|
|
Returns this buffer's offset into the native byte array.
|
|
|
Increments this buffer's position and then returns the resulting position.
|
|
|
limit()
Returns this buffer's limit.
|
|
|
offset()
Returns the byte array position, considering the offset.
|
|
|
position()
Returns this buffer's position.
|
|
|
Returns this buffer's remaining.
|
|
|
setLimit(limit)
Sets this buffer's limit.
|
|
|
setPosition(position)
Sets this buffer's position.
|