Skip to main content

vsa_encode_data

Function vsa_encode_data 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn vsa_encode_data( config: *const VSAConfigHandle, data: *const u8, len: usize, path: *const c_char, ) -> *mut SparseVecHandle
Expand description

Encode data into a SparseVec

ยงSafety

  • All handles must be valid
  • data must point to valid bytes
  • len must be correct
  • path may be null or must be null-terminated UTF-8
  • Returns a handle that must be freed with sparse_vec_free