Code example for ByteBuffer

Methods: compact, flip, hasRemaining