Lugdunum  0.1.0
MemoryMarker.inl
Go to the documentation of this file.
1 inline void NoMemoryMarking::markAllocation(void*, size_t) const {}
2 inline void NoMemoryMarking::markDeallocation(void*, size_t) const {}
3 
4 inline void SimpleMemoryMarking::markAllocation(void* ptr, size_t size) const {
5  std::memset(ptr, SimpleMemoryMarking::AllocationMagic, size);
6 }
7 
8 inline void SimpleMemoryMarking::markDeallocation(void* ptr, size_t size) const {
9  std::memset(ptr, SimpleMemoryMarking::DeallocationMagic, size);
10 }