pub unsafe extern "C" fn xmlMallocAtomicImpl(
size: usize,
) -> *mut c_voidExpand description
Allocate memory that will never contain pointers to other memory.
§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.
Backing the exported xmlMallocAtomic data global.
§SAFETY
The function touches crate-global state only; it is safe as long as the caller respects the library’s global initialization/cleanup ordering (xmlInitParser before use, xmlCleanupParser only after all users are done).
Violating the global lifecycle ordering, or calling this after teardown or from a signal handler, is undefined behavior.