Lines Matching full:region
30 MappedFile::MappedFile(const MemoryRegion ®ion) : region_(region) { }
37 LOG(ERROR) << "failed to unmap region: "<< strerror(errno);
46 MemoryRegion region;
47 region.data = size == 0 ? NULL : operator new(size);
48 region.mmap = NULL;
49 region.size = size;
50 return new MappedFile(region);
54 MemoryRegion region;
55 region.data = data;
56 region.mmap = data;
57 region.size = 0;
58 return new MappedFile(region);
75 MemoryRegion region;
76 region.mmap = map;
77 region.size = upsize;
78 region.data = reinterpret_cast<void*>(data + offset);
79 MappedFile *mmf = new MappedFile(region);
82 VLOG(1) << "mmap'ed region of " << size << " at offset " << pos