yarray

Function yarray 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn yarray( doc: *mut Doc, name: *const c_char, ) -> *mut Branch
Expand description

Gets or creates a new shared YArray data type instance as a root-level type of a given document. This structure can later be accessed using its name, which must be a null-terminated UTF-8 compatible string.

Once created, a YArray instance will last for the entire lifecycle of a document.