Code example for ByteBuffer

Methods: asReadOnlyBuffer, remaining