Buffer
Region of native memory that can be read and written.
This class provides no thread-safety of its own. Synchronize externally if the same instance is accessed from more than one thread.
This buffer must be closed once no longer needed to release the memory it holds. Unless documented otherwise, every member throws IllegalStateException once it is closed.
Types
Functions
Link copied to clipboard
Reads this whole buffer and returns it as a new ByteArray, up to Int.MAX_VALUE bytes.
Link copied to clipboard
Reads this whole buffer and returns it as a new ByteArray.