[][src]Function lexical_core::atoisize_range

#[no_mangle]
pub unsafe extern "C" fn atoisize_range(
    first: *const u8,
    last: *const u8
) -> isize

Unchecked parser for a string-to-number conversion using pointer ranges.

Returns the parsed value, ignoring any trailing invalid digits, and explicitly wrapping on arithmetic overflow.

This parser is FFI-compatible, and therefore may be called externally from C code.

  • first - Pointer to the start of the input data.
  • last - Pointer to the one-past-the-end of the input data.

Panics

Panics if either pointer is null.