Lines Matching refs:Region
16 const MemoryMappedFile::Region MemoryMappedFile::Region::kWholeFile = {0, 0};
18 bool MemoryMappedFile::Region::operator==(
19 const MemoryMappedFile::Region& other) const {
23 bool MemoryMappedFile::Region::operator!=(
24 const MemoryMappedFile::Region& other) const {
44 if (!MapFileRegionToMemory(Region::kWholeFile)) {
53 return Initialize(std::move(file), Region::kWholeFile);
56 bool MemoryMappedFile::Initialize(File file, const Region& region) {
60 if (region != Region::kWholeFile) {
61 DCHECK_GE(region.offset, 0);
62 DCHECK_GT(region.size, 0);
67 if (!MapFileRegionToMemory(region)) {