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);
66 *bytes_read = num_bytes;
72 size_t *bytes_written) {
81 *bytes_written = num_bytes;
111SBFile::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)
static Status FromErrorString(const char *str)
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::File > FileSP