public boolean equals(final byte[] data, int offset, final int len)
    {
        final byte[] bytes = this.bytes;
        if (len != bytes.length)
            return false;

        for (int i = 0; i < len;)
        {
            if (bytes[i++] != data[offset++])
            {
                return false;
            }
        }

        return true;
    }
Returns true if the contents of the internal array and the provided array match.
protostuff-api/src/main/java/io/protostuff/ByteString.java