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

Function check_zero_init

3rd/mimalloc-2.0.9/test/test-api-fill.c:300–308  ·  view source on GitHub ↗

--------------------------------------------------------------------------- Helper functions ---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

298// Helper functions
299// ---------------------------------------------------------------------------
300bool check_zero_init(uint8_t* p, size_t size) {
301 if(!p)
302 return false;
303 bool result = true;
304 for (size_t i = 0; i < size; ++i) {
305 result &= p[i] == 0;
306 }
307 return result;
308}
309
310#if MI_DEBUG >= 2
311bool check_debug_fill_uninit(uint8_t* p, size_t size) {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected