Lines Matching defs:Block
86 struct Block { struct
87 Block(size_t _chunkSize, size_t _numChunks) { in Block() function
117 Interval getInterval() const { in getInterval()
123 bool isFull() const { return numFree == 0; } in isFull()
125 uint8_t* getPtr(size_t element) { in getPtr()
134 size_t getElement(void* ptr) { in getElement()
140 void* alloc() { in alloc()
177 void free(void* toFree) { in free()
198 void freeAll() { in freeAll()
204 Block* next = nullptr; // Unused for now
206 size_t chunkSize = 0;
207 size_t chunkSizeLog2 = 0;
208 size_t numChunks = 0;
209 size_t sizeBytes = 0;
211 AlignedBuf<uint8_t, 64> storage { 0 };
212 uint8_t* data = nullptr;
214 size_t numFree = 0;
215 size_t numAlloced = 0;
217 size_t* nextFree = 0;