MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / emmalloc_realloc_uninitialized

Function emmalloc_realloc_uninitialized

system/lib/emmalloc.c:1128–1130  ·  view source on GitHub ↗

realloc_uninitialized() is like realloc(), but old memory contents will be undefined after reallocation. (old memory is not preserved in any case)

Source from the content-addressed store, hash-verified

1126// realloc_uninitialized() is like realloc(), but old memory contents
1127// will be undefined after reallocation. (old memory is not preserved in any case)
1128void *emmalloc_realloc_uninitialized(void *ptr, size_t size) {
1129 return emmalloc_aligned_realloc_uninitialized(ptr, MALLOC_ALIGNMENT, size);
1130}
1131
1132int emmalloc_posix_memalign(void **memptr, size_t alignment, size_t size) {
1133 assert(memptr);

Callers

nothing calls this directly

Tested by

no test coverage detected