Skip to main content

i64_len

Function i64_len 

Source
pub const fn i64_len(n: i64) -> usize
Expand description

The number of bytes push_i64 would append.

Used to presize a reply buffer before anything is written to it, which is the whole point of Y18: the buffer is sized once from what is about to go into it rather than grown while it is being filled.