Skip to main content

sparse_vec_from_json

Function sparse_vec_from_json 

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

Deserialize a SparseVec from JSON

ยงSafety

  • data must point to valid JSON bytes
  • len must be the correct length
  • Returns a handle that must be freed with sparse_vec_free