Searched refs:SpaceChunk (Results 1 – 2 of 2) sorted by relevance
54 inline void SwapSpace::InsertChunk(const SpaceChunk& chunk) { in InsertChunk()73 for (const SpaceChunk& chunk : free_by_start_) { in ~SwapSpace()113 SpaceChunk old_chunk; in Alloc()129 SpaceChunk new_chunk = { old_chunk.ptr + size, old_chunk.size - size }; in Alloc()136 SwapSpace::SpaceChunk SwapSpace::NewFileChunk(size_t min_size) { in NewFileChunk()154 SpaceChunk new_chunk = {ptr, next_part}; in NewFileChunk()173 SpaceChunk chunk = { reinterpret_cast<uint8_t*>(ptr), size }; in Free()
47 struct SpaceChunk { struct61 bool operator()(const SpaceChunk& a, const SpaceChunk& b) const { in operator() argument66 typedef std::set<SpaceChunk, SortChunkByPtr> FreeByStartSet;81 SpaceChunk NewFileChunk(size_t min_size) REQUIRES(lock_);84 void InsertChunk(const SpaceChunk& chunk) REQUIRES(lock_);