Code example for ByteBuffer

Methods: capacity, position