Lines Matching refs:nullptr
56 h, nullptr, (prot & PROT_WRITE) ? PAGE_READWRITE : PAGE_READONLY, 0, 0, nullptr); in FromOsHandle()
57 if (handle == nullptr) { in FromOsHandle()
62 new MappedFile(const_cast<char*>(kEmptyBuffer), 0, 0, nullptr)); in FromOsHandle()
64 return nullptr; in FromOsHandle()
68 if (base == nullptr) { in FromOsHandle()
70 return nullptr; in FromOsHandle()
75 void* base = mmap(nullptr, file_length, prot, MAP_SHARED, h, file_offset); in FromOsHandle()
82 return nullptr; in FromOsHandle()
89 : base_(std::exchange(other.base_, nullptr)), in MappedFile()
94 handle_(std::exchange(other.handle_, nullptr)) in MappedFile()
101 base_ = std::exchange(other.base_, nullptr); in operator =()
105 handle_ = std::exchange(other.handle_, nullptr); in operator =()
116 if (base_ != nullptr && size_ != 0) UnmapViewOfFile(base_); in Close()
117 if (handle_ != nullptr) CloseHandle(handle_); in Close()
118 handle_ = nullptr; in Close()
120 if (base_ != nullptr && size_ != 0) munmap(base_, size_ + offset_); in Close()
123 base_ = nullptr; in Close()