MCPcopy Create free account
hub / github.com/WheretIB/nullc / FreeMarked

Method FreeMarked

NULLC/translation/runtime.cpp:1220–1237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1218 }
1219 }
1220 unsigned int FreeMarked(unsigned int number)
1221 {
1222 unsigned int freed = 0;
1223 MyLargeBlock *curr = activePages;
1224 while(curr)
1225 {
1226 for(unsigned int i = 0; i < (curr == activePages ? lastNum : countInBlock); i++)
1227 {
1228 if((curr->page[i].marker & 0xff) == number)
1229 {
1230 Free(&curr->page[i]);
1231 freed++;
1232 }
1233 }
1234 curr = curr->next;
1235 }
1236 return freed;
1237 }
1238
1239 MySmallBlock lastBlock;
1240

Callers 1

CollectMemoryMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected