<ahref="#pub-methods">Public Member Functions</a>|
<ahref="classcrashpad_1_1FileHTTPBodyStream-members.html">List of all members</a></div>
<divclass="headertitle">
<divclass="title">crashpad::FileHTTPBodyStream Class Reference</div></div>
</div><!--header-->
<divclass="contents">
<p>An implementation of <aclass="el"href="classcrashpad_1_1HTTPBodyStream.html"title="An interface to a stream that can be used for an HTTP request body. ">HTTPBodyStream</a> that reads from the specified file and provides its contents for an HTTP body.
<areahref="classcrashpad_1_1HTTPBodyStream.html"title="An interface to a stream that can be used for an HTTP request body. "alt="crashpad::HTTPBodyStream"shape="rect"coords="0,0,191,24"/>
<trclass="memdesc:acd103e1d8dd909c4487f55ddc41297f1"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Creates a stream for reading the file at the specified <em>path</em>. <ahref="#acd103e1d8dd909c4487f55ddc41297f1">More...</a><br/></td></tr>
<trclass="memdesc:a0495ba46a1dcdaedaf525d340972d771"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Copies up to <em>max_len</em> bytes into the user-supplied buffer. <ahref="#a0495ba46a1dcdaedaf525d340972d771">More...</a><br/></td></tr>
<divclass="textblock"><p>An implementation of <aclass="el"href="classcrashpad_1_1HTTPBodyStream.html"title="An interface to a stream that can be used for an HTTP request body. ">HTTPBodyStream</a> that reads from the specified file and provides its contents for an HTTP body. </p>
</div><h2class="groupheader">Constructor & Destructor Documentation</h2>
<p>Creates a stream for reading the file at the specified <em>path</em>. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">path</td><td>The file from which this <aclass="el"href="classcrashpad_1_1HTTPBodyStream.html"title="An interface to a stream that can be used for an HTTP request body. ">HTTPBodyStream</a> will read. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<h2class="groupheader">Member Function Documentation</h2>
<p>Copies up to <em>max_len</em> bytes into the user-supplied buffer. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">buffer</td><td>A user-supplied buffer into which this method will copy bytes from the stream. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">max_len</td><td>The length (or size) of <em>buffer</em>. At most this many bytes will be copied.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd>On success, a positive number indicating the number of bytes actually copied to <em>buffer</em>. On failure, a negative number. When the stream has no more data, returns <code>0</code>. </dd></dl>