Skip to main content

moq_consume_json_value

Function moq_consume_json_value 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn moq_consume_json_value( value: u32, dst: *mut moq_json_value, ) -> i32
Expand description

Read a JSON value delivered via a moq_consume_json or moq_consume_json_stream callback.

Fills dst.json / dst.json_len; the pointer is valid until the value is released with moq_consume_json_value_close.

Returns a zero on success, or a negative code on failure.

ยงSafety

  • The caller must ensure dst is a valid pointer to a moq_json_value struct.