<areahref="classcrashpad_1_1FileWriterInterface.html"title="An interface to write to files and other file-like objects with semantics matching the underlying pla..."alt="crashpad::FileWriterInterface"shape="rect"coords="0,56,218,80"/>
<areahref="classcrashpad_1_1FileSeekerInterface.html"title="An interface to seek in files and other file-like objects with semantics matching the underlying plat..."alt="crashpad::FileSeekerInterface"shape="rect"coords="0,0,218,24"/>
<trclass="memdesc:a8caefa3cd0fbd84fa79695cbe3e13d94"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Wraps <aclass="el"href="namespacecrashpad.html#a8a91af9c690d2a280c463596bf82070b"title="Wraps WriteFile(), ensuring that exactly size bytes are written. ">LoggingWriteFile()</a>, or provides an implementation with identical semantics. <ahref="#a8caefa3cd0fbd84fa79695cbe3e13d94">More...</a><br/></td></tr>
<trclass="memdesc:aa8aa7c9034126003912e7349a1e3adc3"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Wraps <code>writev()</code> on POSIX or provides an alternate implementation with identical semantics. This method will write entire buffers, continuing after a short write or after being interrupted. On non-POSIX this is a simple wrapper around <aclass="el"href="classcrashpad_1_1WeakFileHandleFileWriter.html#a8caefa3cd0fbd84fa79695cbe3e13d94"title="Wraps LoggingWriteFile(), or provides an implementation with identical semantics. ...">Write()</a>. <ahref="#aa8aa7c9034126003912e7349a1e3adc3">More...</a><br/></td></tr>
<trclass="memitem:a98976c8eab56aa6d1e0bfe3e01a87b08"><tdclass="memItemLeft"align="right"valign="top"><aclass="el"href="namespacecrashpad.html#a1e53a1957d9edcba8b406ea632b6daf2">FileOffset</a> </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="classcrashpad_1_1WeakFileHandleFileWriter.html#a98976c8eab56aa6d1e0bfe3e01a87b08">Seek</a> (<aclass="el"href="namespacecrashpad.html#a1e53a1957d9edcba8b406ea632b6daf2">FileOffset</a> offset, int whence) override</td></tr>
<trclass="memdesc:a98976c8eab56aa6d1e0bfe3e01a87b08"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Wraps <aclass="el"href="namespacecrashpad.html#a3d6cedc10e24145d4a0c1000c33f8a10"title="Wraps lseek() or SetFilePointerEx(). Logs an error if the operation fails. ">LoggingSeekFile()</a> or provides an alternate implementation with identical semantics. <ahref="#a98976c8eab56aa6d1e0bfe3e01a87b08">More...</a><br/></td></tr>
<trclass="inherit_header pub_methods_classcrashpad_1_1FileSeekerInterface"><tdcolspan="2"onclick="javascript:toggleInherit('pub_methods_classcrashpad_1_1FileSeekerInterface')"><imgsrc="closed.png"alt="-"/> Public Member Functions inherited from <aclass="el"href="classcrashpad_1_1FileSeekerInterface.html">crashpad::FileSeekerInterface</a></td></tr>
<trclass="memdesc:a49a884bfb0a61461b0291c975aa15382 inherit pub_methods_classcrashpad_1_1FileSeekerInterface"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Wraps <aclass="el"href="classcrashpad_1_1FileSeekerInterface.html#a8d56f7d12dfcce3e4a39ad1524302aa1"title="Wraps LoggingSeekFile() or provides an alternate implementation with identical semantics. ">Seek()</a>, using <code>SEEK_CUR</code> to obtain the file’s current position. <ahref="classcrashpad_1_1FileSeekerInterface.html#a49a884bfb0a61461b0291c975aa15382">More...</a><br/></td></tr>
<trclass="memdesc:add2e1ee642d94c91ef722911e9aee250 inherit pub_methods_classcrashpad_1_1FileSeekerInterface"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Wraps <aclass="el"href="classcrashpad_1_1FileSeekerInterface.html#a8d56f7d12dfcce3e4a39ad1524302aa1"title="Wraps LoggingSeekFile() or provides an alternate implementation with identical semantics. ">Seek()</a>, using <code>SEEK_SET</code>, ensuring that the seek succeeded and the file is positioned as desired. <ahref="classcrashpad_1_1FileSeekerInterface.html#add2e1ee642d94c91ef722911e9aee250">More...</a><br/></td></tr>
<divclass="textblock"><p>A file writer backed by a FileHandle. </p>
<p><aclass="el"href="classcrashpad_1_1FileWriter.html"title="A file writer implementation that wraps traditional system file operations on files accessed through ...">FileWriter</a> requires users to provide a FilePath to open, but this class accepts an already-open FileHandle instead. Like <aclass="el"href="classcrashpad_1_1FileWriter.html"title="A file writer implementation that wraps traditional system file operations on files accessed through ...">FileWriter</a>, this class may write to a filesystem-based file, but unlike <aclass="el"href="classcrashpad_1_1FileWriter.html"title="A file writer implementation that wraps traditional system file operations on files accessed through ...">FileWriter</a>, this class is not responsible for creating or closing the file. Users of this class must ensure that the file handle is closed appropriately elsewhere. Objects of this class may be used to write to file handles not associated with filesystem-based files, although special attention should be paid to the <aclass="el"href="classcrashpad_1_1WeakFileHandleFileWriter.html#a98976c8eab56aa6d1e0bfe3e01a87b08"title="Wraps LoggingSeekFile() or provides an alternate implementation with identical semantics. ">Seek()</a> method, which may not function on file handles that do not refer to disk-based files.</p>
<p>This class is expected to be used when other code is responsible for creating files and already provides file handles. </p>
</div><h2class="groupheader">Member Function Documentation</h2>
<p>Wraps <aclass="el"href="namespacecrashpad.html#a3d6cedc10e24145d4a0c1000c33f8a10"title="Wraps lseek() or SetFilePointerEx(). Logs an error if the operation fails. ">LoggingSeekFile()</a> or provides an alternate implementation with identical semantics. </p>
<dlclass="section return"><dt>Returns</dt><dd>The return value of <aclass="el"href="namespacecrashpad.html#a3d6cedc10e24145d4a0c1000c33f8a10"title="Wraps lseek() or SetFilePointerEx(). Logs an error if the operation fails. ">LoggingSeekFile()</a>. <code>-1</code> on failure, with an error message logged.</dd></dl>
<dlclass="section note"><dt>Note</dt><dd>This method is only guaranteed to function on file handles referring to disk-based files. </dd></dl>
<p>Wraps <aclass="el"href="namespacecrashpad.html#a8a91af9c690d2a280c463596bf82070b"title="Wraps WriteFile(), ensuring that exactly size bytes are written. ">LoggingWriteFile()</a>, or provides an implementation with identical semantics. </p>
<dlclass="section return"><dt>Returns</dt><dd><code>true</code> if the operation succeeded, <code>false</code> if it failed, with an error message logged. </dd></dl>
<p>Wraps <code>writev()</code> on POSIX or provides an alternate implementation with identical semantics. This method will write entire buffers, continuing after a short write or after being interrupted. On non-POSIX this is a simple wrapper around <aclass="el"href="classcrashpad_1_1WeakFileHandleFileWriter.html#a8caefa3cd0fbd84fa79695cbe3e13d94"title="Wraps LoggingWriteFile(), or provides an implementation with identical semantics. ...">Write()</a>. </p>
<dlclass="section return"><dt>Returns</dt><dd><code>true</code> if the operation succeeded, <code>false</code> if it failed, with an error message logged.</dd></dl>
<dlclass="section note"><dt>Note</dt><dd>The contents of <em>iovecs</em> are undefined when this method returns. </dd></dl>