Function regex_automata::util::determinize::state::write_varu32
source ยท fn write_varu32(data: &mut Vec<u8>, n: u32)
Expand description
Write an unsigned 32-bit integer as a varint. In essence, n
is written
as a sequence of bytes where all bytes except for the last one have the
most significant bit set. The least significant 7 bits correspond to the
actual bits of n
. So in the worst case, a varint uses 5 bytes, but in
very common cases, it uses fewer than 4.
https://developers.google.com/protocol-buffers/docs/encoding#varints