[−][src]Function dqcsim::bindings::dqcs_arb_get_raw
#[no_mangle]pub extern "C" fn dqcs_arb_get_raw(
arb: dqcs_handle_t,
index: ssize_t,
obj: *mut c_void,
obj_size: size_t
) -> ssize_t
Returns the unstructured string argument at the specified index.
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 determine the size of the argument prior to actually
reading it, so you can allocate the right buffer size first.
This function returns -1 on failure.