- <init>
Sole constructor.
- get
Return a BytesRef that points to the internal content of this builder. Any
update to the content of
- toBytesRef
Build a new BytesRef that has the same content as this buffer.
- append
Append the provided bytes to this builder.
- copyBytes
Replace the content of this builder with the provided bytes. Equivalent to
calling #clear() and then
- bytes
Return a reference to the bytes of this builder.
- grow
Ensure that this builder can hold at least capacity bytes without resizing.
- length
Return the number of bytes in this buffer.
- clear
Reset this builder to the empty state.
- copyChars
Replace the content of this buffer with UTF-8 encoded bytes that would represent
the provided text.
- setLength
Set the length.
- setByteAt
Set a byte.