const encoded_bytes: type = math.divCeil(usize, max_bits, 8) catch unreachable;

Number of bytes required to serialize an integer.