MCPcopy Create free account
hub / github.com/cpputest/cpputest / calculateVoidPointerAlignedSize

Function calculateVoidPointerAlignedSize

src/CppUTest/MemoryLeakDetector.cpp:546–553  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

544}
545
546static size_t calculateVoidPointerAlignedSize(size_t size)
547{
548#ifndef CPPUTEST_DISABLE_MEM_CORRUPTION_CHECK
549 return (sizeof(void*) - (size % sizeof(void*))) + size;
550#else
551 return size;
552#endif
553}
554
555size_t MemoryLeakDetector::sizeOfMemoryWithCorruptionInfo(size_t size)
556{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected