Searched refs:base_file_ (Results 1 – 5 of 5) sorted by relevance
/external/cronet/net/disk_cache/blockfile/ |
D | file_posix.cc | 23 : init_(true), mixed_(true), base_file_(std::move(file)) {} in File() 26 if (base_file_.IsValid()) in Init() 31 base_file_.Initialize(name, flags); in Init() 32 return base_file_.IsValid(); in Init() 36 return base_file_.IsValid(); in IsValid() 40 DCHECK(base_file_.IsValid()); in Read() 46 int ret = base_file_.Read(offset, static_cast<char*>(buffer), buffer_len); in Read() 51 DCHECK(base_file_.IsValid()); in Write() 57 int ret = base_file_.Write(offset, static_cast<const char*>(buffer), in Write() 64 DCHECK(base_file_.IsValid()); in Read() [all …]
|
D | file_ios.cc | 182 : init_(true), mixed_(true), base_file_(std::move(file)) {} in File() 185 if (base_file_.IsValid()) in Init() 190 base_file_.Initialize(name, flags); in Init() 191 return base_file_.IsValid(); in Init() 195 return base_file_.IsValid(); in IsValid() 199 DCHECK(base_file_.IsValid()); in Read() 205 int ret = base_file_.Read(offset, static_cast<char*>(buffer), buffer_len); in Read() 210 DCHECK(base_file_.IsValid()); in Write() 216 int ret = base_file_.Write(offset, static_cast<const char*>(buffer), in Write() 226 DCHECK(base_file_.IsValid()); in Read() [all …]
|
D | file_win.cc | 111 base_file_ = in Init() 115 if (!base_file_.IsValid()) in Init() 118 base::CurrentIOThread::Get()->RegisterIOHandler(base_file_.GetPlatformFile(), in Init() 134 return base_file_.IsValid() || sync_base_file_.IsValid(); in IsValid() 176 if (!ReadFile(base_file_.GetPlatformFile(), buffer, size, &actual, in Read() 209 return base_file_.IsValid() ? base_file_.GetPlatformFile() : in platform_file() 225 if (!WriteFile(base_file_.GetPlatformFile(), buffer, size, &actual, in AsyncWrite()
|
D | file.h | 97 base::File base_file_; // Regular, asynchronous IO handle. variable
|
/external/tensorflow/tensorflow/core/platform/ |
D | retrying_file_system.h | 177 : base_file_(std::move(base_file)), retry_config_(retry_config) {} in RetryingRandomAccessFile() 180 return base_file_->Name(result); in Name() 187 return base_file_->Read(offset, n, result, scratch); in Read() 193 std::unique_ptr<RandomAccessFile> base_file_; 201 : base_file_(std::move(base_file)), retry_config_(retry_config) {} in RetryingWritableFile() 210 [this, &data]() { return base_file_->Append(data); }, retry_config_); in Append() 214 [this]() { return base_file_->Close(); }, retry_config_); in Close() 218 [this]() { return base_file_->Flush(); }, retry_config_); in Flush() 221 return base_file_->Name(result); in Name() 225 [this]() { return base_file_->Sync(); }, retry_config_); in Sync() [all …]
|