ruby_scan_hex

Function ruby_scan_hex 

Source
pub unsafe extern "C" fn ruby_scan_hex(
    str_: *const c_char,
    len: size_t,
    ret: *mut size_t,
) -> c_ulong
Expand description

Interprets the passed string a hexadecimal unsigned integer. Stops when encounters something not understood.

@param[in] str C string to scan. @param[in] len Length of str. @param[out] ret Return value buffer. @return Parsed integer. @post ret is the number of characters read.

@internal

ยงNo consideration is made for integer overflows. As the return value is unsigned this function has fully defined behaviour, but you cannot know if there was an integer wrap-around or not.

Generated by rb-sys for Ruby mri-x86_64-linux-gnu-3.2.3