- length
The length.
- toBytes
Returns a compact array from the given BytesReference. The returned array won't
be copied unless nec
- toUtf8
- streamInput
A stream input of the bytes.
- bytes
Convert an XContentBuilder into a BytesReference. This method closes the
builder, so no further fiel
- utf8ToString
Interprets the referenced bytes as UTF8 bytes, returning the resulting string
- toBytesRef
Converts to Lucene BytesRef.
- array
- writeTo
Writes the bytes directly to the output stream.
- iterator
Returns a BytesRefIterator for this BytesReference. This method allows access to
the internal pages
- get
Returns the byte at the specified index. Need to be between 0 and length.
- slice
Slice the bytes from the from index up to length.