Skip to main content

xmlMallocAtomicImpl

Function xmlMallocAtomicImpl 

Source
pub unsafe extern "C" fn xmlMallocAtomicImpl(
    size: usize,
) -> *mut c_void
Expand description

Allocate through the exported xmlMallocAtomic variable.

§UPSTREAM-PARITY

void *xmlMallocAtomic(size_t size);

Identical to xmlMalloc but hints to the GC that the memory does not contain pointers. In modern libxml2 this is equivalent to xmlMalloc; xmlMemSetup aliases it to the same hook (upstream xmlmemory.c).

§SAFETY

  • The returned pointer must be freed with xmlFree
  • size may be 0 (returns a valid non-NULL pointer or NULL)