<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 a <aclass="el"href="classcrashpad_1_1FileReaderInterface.html"title="An interface to read to files and other file-like objects with semantics matching the underlying plat...">FileReaderInterface</a> 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,232,24"/>
<trclass="memdesc:a791c06a7d79b3aae8720ce54549e52ce"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Creates a stream for reading from a <aclass="el"href="classcrashpad_1_1FileReaderInterface.html"title="An interface to read to files and other file-like objects with semantics matching the underlying plat...">FileReaderInterface</a>. <ahref="#a791c06a7d79b3aae8720ce54549e52ce">More...</a><br/></td></tr>
<trclass="memdesc:ad17733883c6bcb8858ac84fdaa13c968"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Copies up to <em>max_len</em> bytes into the user-supplied buffer. <ahref="#ad17733883c6bcb8858ac84fdaa13c968">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 a <aclass="el"href="classcrashpad_1_1FileReaderInterface.html"title="An interface to read to files and other file-like objects with semantics matching the underlying plat...">FileReaderInterface</a> and provides its contents for an HTTP body. </p>
<p>Creates a stream for reading from a <aclass="el"href="classcrashpad_1_1FileReaderInterface.html"title="An interface to read to files and other file-like objects with semantics matching the underlying plat...">FileReaderInterface</a>. </p>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">reader</td><td>A <aclass="el"href="classcrashpad_1_1FileReaderInterface.html"title="An interface to read to files and other file-like objects with semantics matching the underlying plat...">FileReaderInterface</a> 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>
<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>