Function lexical_core::itoa::isizetoa_range
source · pub unsafe extern "C" fn isizetoa_range(
value: isize,
radix: u8,
first: *mut u8,
last: *mut u8
) -> *mut u8
Expand description
Serializer for a number-to-string conversion using pointer ranges.
Returns a pointer to the 1-past-the-last-byte-written, so that
the range [first, last)
contains the written bytes. No
null-terminator is written.
The data in the range may be uninitialized, these values are never read, only written to.
radix
- Radix for the number parsing (normally 10).first
- Pointer to the start of the buffer to write to.last
- Pointer to the one-past-the-end of the buffer to write to.
Panics
If the radix
feature is enabled, panics if radix is not in
the range [2, 36]
. If the radix
feature is not enabled,
panics if radix != 10
.
Also panics if the buffer is not of sufficient size, The caller
must provide a range of sufficient size, and neither pointer
may be null. In order to ensure the function will not panic,
ensure the buffer has at least MAX_*_SIZE
elements, using
the proper constant for the serialized type from the
lexical_core crate root.