#[unsafe(no_mangle)]pub unsafe extern "C" fn obj_find_unique(
txn: *mut obj_read_txn_t,
collection: *const c_char,
index_name: *const c_char,
key: *const u8,
key_len: usize,
out_id: *mut u64,
out_payload: *mut *mut u8,
out_payload_len: *mut usize,
) -> obj_error_tExpand description
Look up a single doc by index key on a Unique index. The
caller pre-encodes key_bytes per M7’s order-preserving
scheme. Returns OBJ_ERR_NOT_FOUND when no doc matches.
§Safety
txnmust be live.collection,index_name,keyfollow the usual pointer rules;keymay be NULL whenkey_len == 0.out_id,out_payload,out_payload_lenmust be writable.