pub unsafe extern "C" fn yyjson_mut_read_number(
dat: *const c_char,
val: *mut yyjson_mut_val,
flg: yyjson_read_flag,
alc: *const yyjson_alc,
err: *mut yyjson_read_err,
) -> *const c_charExpand description
Read a JSON number.
This function is thread-safe when data is not modified by other threads.
@param dat The JSON data (UTF-8 without BOM), null-terminator is required.
If this parameter is NULL, the function will fail and return NULL.
@param val The output value where result is stored.
If this parameter is NULL, the function will fail and return NULL.
The value will hold either UINT or SINT or REAL number;
@param flg The JSON read options.
Multiple options can be combined with | operator. 0 means no options.
Supports YYJSON_READ_NUMBER_AS_RAW and YYJSON_READ_ALLOW_INF_AND_NAN.
@param alc The memory allocator used for long number.
It is only used when the built-in floating point reader is disabled.
Pass NULL to use the libc’s default allocator.
@param err A pointer to receive error information.
Pass NULL if you don’t need error information.
@return If successful, a pointer to the character after the last character
used in the conversion, NULL if an error occurs.