docs: public static long varIntBytesToLong(byte[] bytes, int offset) {
          int shift = 0;
          long result = 0;
          while (shift < 64) {
              final byte b = bytes[offset++];
              result |= (long)(b & 0x7F) << shift;
              if ((b & 0x80) == 0) {
                  return result;
              }
              shift += 7;
          }
          throw new IllegalStateException("Varint representation is invalid or exceeds 64-bit value");
      }