toBytesRef

Build a new BytesRef that has the same content as this buffer.