#[unsafe(no_mangle)]pub unsafe extern "C" fn yarray_insert_range(
array: *const Branch,
txn: *mut Transaction,
index: u32,
items: *const YInput,
items_len: u32,
)Expand description
Inserts a range of items into current YArray, starting at given index. An items_len
parameter is used to determine the size of items array - it can also be used to insert
a single element given its pointer.
An index value must be between 0 and (inclusive) length of a current array (use yarray_len
to determine its length), otherwise it will panic at runtime.
YArray doesn’t take ownership over the inserted items data - their contents are being copied
into array structure - therefore caller is responsible for freeing all memory associated with
input params.