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

Method ClearTo

NULLC/Pool.h:31–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29 size = first ? 0 : chunkSize;
30 }
31 void ClearTo(unsigned int bytes)
32 {
33 if(!first)
34 return;
35 curr = first;
36 while(bytes > chunkSize)
37 {
38 assert(curr->next != NULL);
39 curr = curr->next;
40 bytes -= chunkSize;
41 }
42 size = bytes;
43 }
44 void* Allocate(unsigned int bytes)
45 {
46 assert(bytes < chunkSize);

Callers 3

SetPoolTopMethod · 0.45
SetPoolTopMethod · 0.45
SetPoolTopMethod · 0.45

Calls 1

assertFunction · 0.85

Tested by

no test coverage detected