Home
last modified time | relevance | path

Searched refs:fd_interface_ (Results 1 – 3 of 3) sorted by relevance

/external/libbrillo/brillo/streams/
Dfile_stream.cc329 : fd_interface_(std::move(fd_interface)), in FileStream()
331 switch (fd_interface_->GetFileMode() & S_IFMT) { in FileStream()
354 return fd_interface_->IsOpen(); in IsOpen()
374 return IsOpen() ? fd_interface_->GetSize() : 0; in GetSize()
384 if (fd_interface_->Truncate(size) >= 0) in SetSizeBlocking()
403 off64_t pos = fd_interface_->Seek(0, SEEK_CUR); in GetPosition()
431 off64_t pos = fd_interface_->Seek(offset, raw_whence); in Seek()
450 ssize_t read = fd_interface_->Read(buffer, size_to_read); in ReadNonBlocking()
477 ssize_t written = fd_interface_->Write(buffer, size_to_write); in WriteNonBlocking()
505 if (fd_interface_->Close() < 0) { in CloseBlocking()
[all …]
Dfile_stream.h159 std::unique_ptr<FileDescriptorInterface> fd_interface_; variable
Dfile_stream_unittest.cc147 return *static_cast<MockFileDescriptor*>(stream_->fd_interface_.get()); in fd_mock()