nextByte property

int nextByte

Reads the byte at this buffer's current position, and then increments the position.

Throws:

  • BufferOverflowException - If the buffer's current position is not smaller than its limit

Implementation

int get nextByte {
  return _getId(this, const jbyteType(), []);
}
void nextByte=(int b)

Writes the given byte into this buffer at the current position, and then increments the position.

Throws:

  • BufferOverflowException - If this buffer's current position is not smaller than its limit
  • ReadOnlyBufferException - If this buffer is read-only

Implementation

set nextByte(int b) {
  _putId(this, const JObjectType(), [JValueByte(b)]).release();
}