MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / mi_mem_is_zero

Function mi_mem_is_zero

3rd/mimalloc-2.0.9/include/mimalloc-internal.h:287–292  ·  view source on GitHub ↗

Is memory zero initialized?

Source from the content-addressed store, hash-verified

285
286// Is memory zero initialized?
287static inline bool mi_mem_is_zero(void* p, size_t size) {
288 for (size_t i = 0; i < size; i++) {
289 if (((uint8_t*)p)[i] != 0) return false;
290 }
291 return true;
292}
293
294
295// Align a byte size to a size in _machine words_,

Callers 2

mi_page_is_valid_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected