class StringFile

Defined at line 36 of file ../../third_party/crashpad/src/util/file/string_file.h

A file reader and writer backed by a virtual file, as opposed to a

file on disk or other operating system file descriptor-based file.

The virtual file is a buffer in memory. This class is convenient for use

with other code that normally expects to read or write files, when it is

impractical or inconvenient to read or write a file. It is expected that

tests, in particular, will benefit from using this class.

Public Methods

void StringFile ()
void StringFile (const StringFile & )

Defined at line 40 of file ../../third_party/crashpad/src/util/file/string_file.h

StringFile & operator= (const StringFile & )

Defined at line 41 of file ../../third_party/crashpad/src/util/file/string_file.h

const std::string & string ()

Returns a string containing the virtual file’s contents.

Defined at line 46 of file ../../third_party/crashpad/src/util/file/string_file.h

void ~StringFile ()
void SetString (const std::string & string)

Sets the virtual file’s contents to

and resets its file

position to `0`.

void Reset ()

Resets the virtual file’s contents to be empty, and resets its file

position to `0`.

FileOperationResult Read (void * data, size_t size)

FileReaderInterface:

bool Write (const void * data, size_t size)

FileWriterInterface:

bool WriteIoVec (std::vector<WritableIoVec> * iovecs)
FileOffset Seek (FileOffset offset, int whence)

FileSeekerInterface: