MCPcopy Create free account
hub / github.com/ariccio/altWinDirStat / ReUseBlocks

Function ReUseBlocks

Reference code/test_datastructures/short_exp/Heap.cpp:130–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130BOOL ReUseBlocks(PHEAPBLOCK block, BOOL clear)
131{
132 if ( block != NULL ) {
133 PHEAPBLOCK tmp;
134 PHEAPBLOCK back;
135 tmp = block;
136 while ( tmp != NULL ) {
137 tmp->current = 0;
138 tmp = tmp->next;
139 if ( clear ) {
140 delete tmp->data;
141 //memset( tmp->data, 0, tmp->size*sizeof( TCHAR ) );
142 }
143 }
144 block->end = block;
145 }
146 return TRUE;
147}

Callers 3

SearchDlgFunction · 0.70
SearchFunction · 0.70
ReparseDiskFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected