MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / set_size

Method set_size

dds/DCPS/MemoryPool.cpp:72–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72void
73AllocHeader::set_size(size_t size)
74{
75 if (is_free()) {
76 size *= static_cast<size_t>(-1);
77 }
78 alloc_size_ = (int)size;
79}
80
81void
82AllocHeader::join_next() {

Callers 3

join_nextMethod · 0.95
allocateMethod · 0.80
free_blockMethod · 0.80

Calls 1

is_freeFunction · 0.85

Tested by

no test coverage detected