Variable-length signed integer, 1-5 bytes:
byte 1 bit 8 = sign, bit 7 = continuation, bits 1-6 = value
bytes 2-5 bit 8 = continuation, bits 1-7 = value
The fifth byte is terminal, so a conforming encoder can never set its continuation bit - the value it would continue has already used every available bit.
Copy of the next
byteCountbytes.