presto-orc/src/main/java/io/prestosql/orc/stream/LongOutputStreamV2.java/LongOutputStreamV2/writeVulong
class LongOutputStreamV2:        static void writeVulong(SliceOutput output, long value)
        {
            while (true) {
                if ((value & ~0x7f) == 0) {
                    output.write((byte) value);
                    return;
                }
                else {
                    output.write((byte) (0x80 | (value & 0x7f)));
                    value >>>= 7;
                }
            }
        }