Calculates the number of bytes needed to encode a variable byte integer.
The integer value to encode (0 to 268,435,455)
Number of bytes needed (1-4)
RangeError if value is out of range
variableByteIntegerLength(0) // 1variableByteIntegerLength(127) // 1variableByteIntegerLength(128) // 2variableByteIntegerLength(16383) // 2variableByteIntegerLength(16384) // 3 Copy
variableByteIntegerLength(0) // 1variableByteIntegerLength(127) // 1variableByteIntegerLength(128) // 2variableByteIntegerLength(16383) // 2variableByteIntegerLength(16384) // 3
Calculates the number of bytes needed to encode a variable byte integer.