42 m_opaque_sp = std::make_shared<NativeFile>(file, transfer_ownership);
50 llvm::consumeError(options.takeError());
54 std::make_shared<NativeFile>(fd, options.get(), transfer_owndership);
62 error.SetErrorString(
"invalid SBFile");
66 error.SetError(status);
67 *bytes_read = num_bytes;
73 size_t *bytes_written) {
78 error.SetErrorString(
"invalid SBFile");
82 error.SetError(status);
83 *bytes_written = num_bytes;
93 error.SetErrorString(
"invalid SBFile");
96 error.SetError(status);
111 error.SetError(status);
116SBFile::operator bool()
const {
static llvm::raw_ostream & error(Stream &strm)
#define LLDB_INSTRUMENT_VA(...)
SBError Write(const uint8_t *buf, size_t num_bytes, size_t *OUTPUT)
SBError Read(uint8_t *buf, size_t num_bytes, size_t *OUTPUT)
static llvm::Expected< OpenOptions > GetOptionsFromMode(llvm::StringRef mode)
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::File > FileSP