@Override
    public int getByteLength() {
        return utf8.length;
    }
This will fetch length bytes from the given buffer.
@param buf     The ByteBuffer to read from
@param length  number of bytes to read
vespajlib/src/main/java/com/yahoo/text/Utf8Array.java