| 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); |
no test coverage detected