#[unsafe(no_mangle)]pub unsafe extern "C" fn xmlMemGet(
freeFunc: *mut Option<xmlFreeFunc>,
mallocFunc: *mut Option<xmlMallocFunc>,
reallocFunc: *mut Option<xmlReallocFunc>,
strdupFunc: *mut Option<xmlStrdupFunc>,
) -> c_intExpand description
Get the current memory allocator functions (upstream xmlmemory.h).
§UPSTREAM-PARITY
int xmlMemGet(xmlFreeFunc *freeFunc,
xmlMallocFunc *mallocFunc,
xmlReallocFunc *reallocFunc,
xmlStrdupFunc *strdupFunc);Writes the current exported allocator variables through NULL-tolerant output pointers (upstream xmlmemory.c: NULL outputs are skipped) and returns 0.
§SAFETY
- All non-NULL output pointers must be valid and writable