Searched defs:FakeMmap (Results 1 – 1 of 1) sorted by relevance
48 struct FakeMmap { struct49 explicit FakeMmap(size_t size) : size(size), data(new char[size]) {} in FakeMmap() argument50 size_t size;51 std::unique_ptr<char[]> data;52 void* mmap() { return static_cast<void*>(data.get()); } in mmap()