Function yrs::ysticky_index_from_index

source ยท
#[no_mangle]
pub unsafe extern "C" fn ysticky_index_from_index(
    branch: *const Branch,
    txn: *mut Transaction,
    index: u32,
    assoc: i8
) -> *mut YStickyIndex
Expand description

Retrieves a YStickyIndex corresponding to a given human-readable index pointing into the shared y-type branch. Unlike standard indexes sticky one enables to track the location inside of a shared y-types, even in the face of concurrent updates.

If association is >= 0, the resulting position will point to location after the referenced index. If association is < 0, the resulting position will point to location before the referenced index.