2015-10-08 14:55:01 -04:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" >
< head >
< meta http-equiv = "Content-Type" content = "text/xhtml;charset=UTF-8" / >
< meta http-equiv = "X-UA-Compatible" content = "IE=9" / >
2017-02-22 23:37:31 -05:00
< meta name = "generator" content = "Doxygen 1.8.13" / >
2016-11-07 15:21:37 -05:00
< meta name = "viewport" content = "width=device-width, initial-scale=1" / >
2015-10-08 14:55:01 -04:00
< title > Crashpad: crashpad::StringHTTPBodyStream Class Reference< / title >
< link href = "tabs.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "jquery.js" > < / script >
< script type = "text/javascript" src = "dynsections.js" > < / script >
< link href = "search/search.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "search/searchdata.js" > < / script >
< script type = "text/javascript" src = "search/search.js" > < / script >
< link href = "doxygen.css" rel = "stylesheet" type = "text/css" / >
2016-11-08 14:26:59 -05:00
< link href = "crashpad_doxygen.css" rel = "stylesheet" type = "text/css" / >
2015-10-08 14:55:01 -04:00
< / head >
< body >
< div id = "top" > <!-- do not remove this div, it is closed by doxygen! -->
< div id = "titlearea" >
< table cellspacing = "0" cellpadding = "0" >
< tbody >
< tr style = "height: 56px;" >
2016-01-06 16:09:15 -05:00
< td id = "projectalign" style = "padding-left: 0.5em;" >
2015-10-08 14:55:01 -04:00
< div id = "projectname" > Crashpad
< / div >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
<!-- end header part -->
2017-02-22 23:37:31 -05:00
<!-- Generated by Doxygen 1.8.13 -->
2015-10-08 14:55:01 -04:00
< script type = "text/javascript" >
var searchBox = new SearchBox("searchBox", "search",false,'Search');
< / script >
2016-11-07 15:21:37 -05:00
< script type = "text/javascript" src = "menudata.js" > < / script >
< script type = "text/javascript" src = "menu.js" > < / script >
< script type = "text/javascript" >
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
< / script >
< div id = "main-nav" > < / div >
2015-10-08 14:55:01 -04:00
<!-- window showing the filter options -->
< div id = "MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
< / div >
<!-- iframe showing the search results (closed by default) -->
< div id = "MSearchResultsWindow" >
< iframe src = "javascript:void(0)" frameborder = "0"
name="MSearchResults" id="MSearchResults">
< / iframe >
< / div >
< div id = "nav-path" class = "navpath" >
< ul >
< li class = "navelem" > < a class = "el" href = "namespacecrashpad.html" > crashpad< / a > < / li > < li class = "navelem" > < a class = "el" href = "classcrashpad_1_1StringHTTPBodyStream.html" > StringHTTPBodyStream< / a > < / li > < / ul >
< / div >
< / div > <!-- top -->
< div class = "header" >
< div class = "summary" >
< a href = "#pub-methods" > Public Member Functions< / a > |
< a href = "classcrashpad_1_1StringHTTPBodyStream-members.html" > List of all members< / a > < / div >
< div class = "headertitle" >
< div class = "title" > crashpad::StringHTTPBodyStream Class Reference< / div > < / div >
< / div > <!-- header -->
< div class = "contents" >
< p > An implementation of < a class = "el" href = "classcrashpad_1_1HTTPBodyStream.html" title = "An interface to a stream that can be used for an HTTP request body. " > HTTPBodyStream< / a > that turns a fixed string into a stream.
< a href = "classcrashpad_1_1StringHTTPBodyStream.html#details" > More...< / a > < / p >
< p > < code > #include " util/net/http_body.h" < / code > < / p >
< div class = "dynheader" >
Inheritance diagram for crashpad::StringHTTPBodyStream:< / div >
< div class = "dyncontent" >
< div class = "center" >
< img src = "classcrashpad_1_1StringHTTPBodyStream.png" usemap = "#crashpad::StringHTTPBodyStream_map" alt = "" / >
< map id = "crashpad::StringHTTPBodyStream_map" name = "crashpad::StringHTTPBodyStream_map" >
< area href = "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,203,24" / >
< / map >
< / div > < / div >
< table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "pub-methods" > < / a >
Public Member Functions< / h2 > < / td > < / tr >
< tr class = "memitem:a22c14df64745c7aeca6da61004a30a7b" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcrashpad_1_1StringHTTPBodyStream.html#a22c14df64745c7aeca6da61004a30a7b" > StringHTTPBodyStream< / a > (const std::string & string)< / td > < / tr >
< tr class = "memdesc:a22c14df64745c7aeca6da61004a30a7b" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Creates a stream with the specified string. < a href = "#a22c14df64745c7aeca6da61004a30a7b" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:a22c14df64745c7aeca6da61004a30a7b" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2015-10-28 16:54:59 -04:00
< tr class = "memitem:afa56035c89a4cfcc0e028c8c1838a56d" > < td class = "memItemLeft" align = "right" valign = "top" > FileOperationResult  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcrashpad_1_1StringHTTPBodyStream.html#afa56035c89a4cfcc0e028c8c1838a56d" > GetBytesBuffer< / a > (uint8_t *buffer, size_t max_len) override< / td > < / tr >
< tr class = "memdesc:afa56035c89a4cfcc0e028c8c1838a56d" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Copies up to < em > max_len< / em > bytes into the user-supplied buffer. < a href = "#afa56035c89a4cfcc0e028c8c1838a56d" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:afa56035c89a4cfcc0e028c8c1838a56d" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2015-10-08 14:55:01 -04:00
< / table >
< a name = "details" id = "details" > < / a > < h2 class = "groupheader" > Detailed Description< / h2 >
< div class = "textblock" > < p > An implementation of < a class = "el" href = "classcrashpad_1_1HTTPBodyStream.html" title = "An interface to a stream that can be used for an HTTP request body. " > HTTPBodyStream< / a > that turns a fixed string into a stream. < / p >
< / div > < h2 class = "groupheader" > Constructor & Destructor Documentation< / h2 >
2016-11-07 15:21:37 -05:00
< a id = "a22c14df64745c7aeca6da61004a30a7b" > < / a >
2017-02-22 23:37:31 -05:00
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a22c14df64745c7aeca6da61004a30a7b" > ◆ < / a > < / span > StringHTTPBodyStream()< / h2 >
2016-11-07 15:21:37 -05:00
2015-10-08 14:55:01 -04:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > crashpad::StringHTTPBodyStream::StringHTTPBodyStream < / td >
< td > (< / td >
< td class = "paramtype" > const std::string &   < / td >
< td class = "paramname" > < em > string< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > explicit< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Creates a stream with the specified string. < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramdir" > [in]< / td > < td class = "paramname" > string< / td > < td > The string to turn into a stream. < / td > < / tr >
< / table >
< / dd >
< / dl >
< / div >
< / div >
< h2 class = "groupheader" > Member Function Documentation< / h2 >
2016-11-07 15:21:37 -05:00
< a id = "afa56035c89a4cfcc0e028c8c1838a56d" > < / a >
2017-02-22 23:37:31 -05:00
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#afa56035c89a4cfcc0e028c8c1838a56d" > ◆ < / a > < / span > GetBytesBuffer()< / h2 >
2016-11-07 15:21:37 -05:00
2015-10-08 14:55:01 -04:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
2015-10-28 16:54:59 -04:00
< td class = "memname" > FileOperationResult crashpad::StringHTTPBodyStream::GetBytesBuffer < / td >
2015-10-08 14:55:01 -04:00
< td > (< / td >
< td class = "paramtype" > uint8_t *  < / td >
< td class = "paramname" > < em > buffer< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > size_t  < / td >
< td class = "paramname" > < em > max_len< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > override< / span > < span class = "mlabel" > virtual< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Copies up to < em > max_len< / em > bytes into the user-supplied buffer. < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramdir" > [out]< / td > < td class = "paramname" > buffer< / td > < td > A user-supplied buffer into which this method will copy bytes from the stream. < / td > < / tr >
< tr > < td class = "paramdir" > [in]< / td > < td class = "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 >
< dl class = "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 >
2015-10-28 16:54:59 -04:00
< p > Implements < a class = "el" href = "classcrashpad_1_1HTTPBodyStream.html#aa6a460e23c34ff7b2edc056a5ffd11b2" > crashpad::HTTPBodyStream< / a > .< / p >
2015-10-08 14:55:01 -04:00
< / div >
< / div >
< hr / > The documentation for this class was generated from the following files:< ul >
< li > util/net/http_body.h< / li >
< li > util/net/http_body.cc< / li >
< / ul >
< / div > <!-- contents -->
<!-- start footer part -->
< hr class = "footer" / > < address class = "footer" > < small >
Generated by   < a href = "http://www.doxygen.org/index.html" >
< img class = "footer" src = "doxygen.png" alt = "doxygen" / >
2017-02-22 23:37:31 -05:00
< / a > 1.8.13
2015-10-08 14:55:01 -04:00
< / small > < / address >
< / body >
< / html >