Code example for ByteBuffer

Methods: capacity, isDirect, limit, position