Function lexical_write_integer::algorithm::algorithm_u128
source · pub fn algorithm_u128<const FORMAT: u128, const MASK: u128, const SHIFT: i32>(
value: u128,
table: &[u8],
buffer: &mut [u8],
count: usize,
) -> usize
Expand description
Optimized implementation for radix-N 128-bit numbers.
§Safety
Safe as long as the buffer is large enough to hold as many digits
that can be in the largest value of T
, in radix N
. For decimal
values, it’s supposed to be exactly digit_count
to avoid copies,
since we write from the end to the front.
See the crate crate
documentation for more security considerations.