[][src]Function dqcsim::bindings::dqcs_arb_cbor_get

#[no_mangle]pub extern "C" fn dqcs_arb_cbor_get(
    arb: dqcs_handle_t,
    obj: *mut c_void,
    obj_size: size_t
) -> ssize_t

Returns the JSON/CBOR object of an ArbData object in the form of a CBOR object.

If the actual size of the object differs from the specified object size, this function will copy the minimum of the actual and specified sizes number of bytes, and return what the actual size was.

If the specified object size is zero, obj is allowed to be NULL. You can use this to query the size before allocating an object.

This function returns -1 on failure.