#[unsafe(no_mangle)]pub unsafe extern "C" fn obj_doc_insert(
txn: *mut obj_write_txn_t,
collection: *const c_char,
payload: *const u8,
payload_len: usize,
out_id: *mut u64,
) -> obj_error_tExpand description
Insert a raw-bytes document into collection. The collection
is lazy-created if absent. On success *out_id is set to the
freshly-allocated id.
ยงSafety
txnmust be a live write txn handle.collectionmust be a non-null NUL-terminated UTF-8 string.payloadmay be null IFFpayload_len == 0; otherwise it must point topayload_lenreadable bytes.out_idmust be a writableuint64_t *.