| 59 | } |
| 60 | |
| 61 | SimpleStringInternalCacheNode* SimpleStringInternalCache::createInternalCacheNodes() |
| 62 | { |
| 63 | SimpleStringInternalCacheNode* node = (SimpleStringInternalCacheNode*) (void*) allocator_->alloc_memory(sizeof(SimpleStringInternalCacheNode) * amountOfInternalCacheNodes, __FILE__, __LINE__); |
| 64 | |
| 65 | for (int i = 0; i < amountOfInternalCacheNodes; i++) { |
| 66 | node[i].freeMemoryHead_ = NULLPTR; |
| 67 | node[i].usedMemoryHead_ = NULLPTR; |
| 68 | } |
| 69 | node[0].size_ = 32; |
| 70 | node[1].size_ = 64; |
| 71 | node[2].size_ = 96; |
| 72 | node[3].size_ = 128; |
| 73 | node[4].size_ = 256; |
| 74 | return node; |
| 75 | } |
| 76 | |
| 77 | bool SimpleStringInternalCache::isCached(size_t size) |
| 78 | { |
nothing calls this directly
no test coverage detected