#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_codec_json_to_cbor(
json: *const u8,
json_len: usize,
out_buffer: *mut *mut PamojaBuffer,
) -> PamojaStatusExpand description
Converts a JSON document into its CBOR encoding.
§Returns
PamojaStatus::Ok on success, with *out_buffer set to a new buffer handle
the caller must release with
pamoja_buffer_free, or an error status whose
message is available from
pamoja_last_error_message.
§Safety
json must point to at least json_len readable bytes, or be null when
json_len is 0, and out_buffer must point to a writable
*mut PamojaBuffer.