Function yrs::ytransaction_apply[][src]

#[no_mangle]
pub unsafe extern "C" fn ytransaction_apply(
    txn: *mut Transaction,
    diff: *const c_uchar,
    diff_len: c_int
)
Expand description

Applies an diff update (generated by ytransaction_state_diff_v1) to a local transaction’s document.

A length of generated diff binary must be passed within a diff_len out parameter.