2016-03-15 19:20:29 -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" / >
< meta name = "generator" content = "Doxygen 1.8.10" / >
< title > Crashpad: crashpad::internal::CaptureMemoryDelegateWin 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 >
< script type = "text/javascript" >
$(document).ready(function() { init_search(); });
< / script >
< link href = "doxygen.css" rel = "stylesheet" type = "text/css" / >
< / 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;" >
< td id = "projectalign" style = "padding-left: 0.5em;" >
< div id = "projectname" > Crashpad
< / div >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
<!-- end header part -->
<!-- Generated by Doxygen 1.8.10 -->
< script type = "text/javascript" >
var searchBox = new SearchBox("searchBox", "search",false,'Search');
< / script >
< div id = "navrow1" class = "tabs" >
< ul class = "tablist" >
< li > < a href = "index.html" > < span > Main  Page< / span > < / a > < / li >
< li > < a href = "pages.html" > < span > Related  Pages< / span > < / a > < / li >
< li > < a href = "namespaces.html" > < span > Namespaces< / span > < / a > < / li >
< li class = "current" > < a href = "annotated.html" > < span > Classes< / span > < / a > < / li >
< li > < a href = "files.html" > < span > Files< / span > < / a > < / li >
< li >
< div id = "MSearchBox" class = "MSearchBoxInactive" >
< span class = "left" >
< img id = "MSearchSelect" src = "search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
< input type = "text" id = "MSearchField" value = "Search" accesskey = "S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
< / span > < span class = "right" >
< a id = "MSearchClose" href = "javascript:searchBox.CloseResultsWindow()" > < img id = "MSearchCloseImg" border = "0" src = "search/close.png" alt = "" / > < / a >
< / span >
< / div >
< / li >
< / ul >
< / div >
< div id = "navrow2" class = "tabs2" >
< ul class = "tablist" >
< li > < a href = "annotated.html" > < span > Class  List< / span > < / a > < / li >
< li > < a href = "classes.html" > < span > Class  Index< / span > < / a > < / li >
< li > < a href = "hierarchy.html" > < span > Class  Hierarchy< / span > < / a > < / li >
< li > < a href = "functions.html" > < span > Class  Members< / span > < / a > < / li >
< / ul >
< / div >
<!-- 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 = "namespacecrashpad_1_1internal.html" > internal< / a > < / li > < li class = "navelem" > < a class = "el" href = "classcrashpad_1_1internal_1_1CaptureMemoryDelegateWin.html" > CaptureMemoryDelegateWin< / a > < / li > < / ul >
< / div >
< / div > <!-- top -->
< div class = "header" >
< div class = "summary" >
< a href = "#pub-methods" > Public Member Functions< / a > |
< a href = "classcrashpad_1_1internal_1_1CaptureMemoryDelegateWin-members.html" > List of all members< / a > < / div >
< div class = "headertitle" >
< div class = "title" > crashpad::internal::CaptureMemoryDelegateWin Class Reference< / div > < / div >
< / div > <!-- header -->
< div class = "contents" >
< div class = "dynheader" >
Inheritance diagram for crashpad::internal::CaptureMemoryDelegateWin:< / div >
< div class = "dyncontent" >
< div class = "center" >
< img src = "classcrashpad_1_1internal_1_1CaptureMemoryDelegateWin.png" usemap = "#crashpad::internal::CaptureMemoryDelegateWin_map" alt = "" / >
< map id = "crashpad::internal::CaptureMemoryDelegateWin_map" name = "crashpad::internal::CaptureMemoryDelegateWin_map" >
< area href = "classcrashpad_1_1internal_1_1CaptureMemory_1_1Delegate.html" title = "An interface to a platform-specific process reader. " alt = "crashpad::internal::CaptureMemory::Delegate" shape = "rect" coords = "0,0,281,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 >
2016-06-23 11:18:01 -04:00
< tr class = "memitem:a8c08c93d2784dd400ad21daa9ed91568" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcrashpad_1_1internal_1_1CaptureMemoryDelegateWin.html#a8c08c93d2784dd400ad21daa9ed91568" > CaptureMemoryDelegateWin< / a > (< a class = "el" href = "classcrashpad_1_1ProcessReaderWin.html" > ProcessReaderWin< / a > *process_reader, const < a class = "el" href = "structcrashpad_1_1ProcessReaderWin_1_1Thread.html" > ProcessReaderWin::Thread< / a > & thread, < a class = "el" href = "namespacecrashpad.html#a9cae195b61eb9fe7cd4ae9a66e13f00f" > PointerVector< / a > < < a class = "el" href = "classcrashpad_1_1internal_1_1MemorySnapshotWin.html" > MemorySnapshotWin< / a > > *snapshots, uint32_t *budget_remaining)< / td > < / tr >
< tr class = "memdesc:a8c08c93d2784dd400ad21daa9ed91568" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > A MemoryCaptureDelegate for Windows. < a href = "#a8c08c93d2784dd400ad21daa9ed91568" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:a8c08c93d2784dd400ad21daa9ed91568" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2016-03-15 19:20:29 -04:00
< tr class = "memitem:a063e4b560d77ead739e89a38e6ee270c" > < td class = "memItemLeft" align = "right" valign = "top" > bool  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcrashpad_1_1internal_1_1CaptureMemoryDelegateWin.html#a063e4b560d77ead739e89a38e6ee270c" > Is64Bit< / a > () const override< / td > < / tr >
< tr class = "separator:a063e4b560d77ead739e89a38e6ee270c" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ac37eea2a0e403aa5eaae898c19106390" > < td class = "memItemLeft" align = "right" valign = "top" > bool  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcrashpad_1_1internal_1_1CaptureMemoryDelegateWin.html#ac37eea2a0e403aa5eaae898c19106390" > ReadMemory< / a > (uint64_t at, uint64_t num_bytes, void *into) const override< / td > < / tr >
< tr class = "memdesc:ac37eea2a0e403aa5eaae898c19106390" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Attempts to read < em > num_bytes< / em > bytes from the target process starting at address < em > at< / em > into < em > into< / em > . < a href = "#ac37eea2a0e403aa5eaae898c19106390" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:ac37eea2a0e403aa5eaae898c19106390" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a7c4d579fb31982209c99a23f48e101df" > < td class = "memItemLeft" align = "right" valign = "top" > std::vector< < a class = "el" href = "classcrashpad_1_1CheckedRange.html" > CheckedRange< / a > < uint64_t > >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcrashpad_1_1internal_1_1CaptureMemoryDelegateWin.html#a7c4d579fb31982209c99a23f48e101df" > GetReadableRanges< / a > (const < a class = "el" href = "classcrashpad_1_1CheckedRange.html" > CheckedRange< / a > < uint64_t, uint64_t > & range) const override< / td > < / tr >
< tr class = "memdesc:a7c4d579fb31982209c99a23f48e101df" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Given a range to be read from the target process, returns a vector of ranges, representing the readable portions of the original range. < a href = "#a7c4d579fb31982209c99a23f48e101df" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:a7c4d579fb31982209c99a23f48e101df" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a7f86fec71c8d1e34abfb2271535cbced" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a7f86fec71c8d1e34abfb2271535cbced" > < / a >
void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcrashpad_1_1internal_1_1CaptureMemoryDelegateWin.html#a7f86fec71c8d1e34abfb2271535cbced" > AddNewMemorySnapshot< / a > (const < a class = "el" href = "classcrashpad_1_1CheckedRange.html" > CheckedRange< / a > < uint64_t, uint64_t > & range)< / td > < / tr >
< tr class = "memdesc:a7f86fec71c8d1e34abfb2271535cbced" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Adds the given range representing a memory snapshot in the target process to the result. < br / > < / td > < / tr >
< tr class = "separator:a7f86fec71c8d1e34abfb2271535cbced" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table >
< h2 class = "groupheader" > Constructor & Destructor Documentation< / h2 >
2016-06-23 11:18:01 -04:00
< a class = "anchor" id = "a8c08c93d2784dd400ad21daa9ed91568" > < / a >
2016-03-15 19:20:29 -04:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > crashpad::internal::CaptureMemoryDelegateWin::CaptureMemoryDelegateWin < / td >
< td > (< / td >
< td class = "paramtype" > < a class = "el" href = "classcrashpad_1_1ProcessReaderWin.html" > ProcessReaderWin< / a > *  < / td >
< td class = "paramname" > < em > process_reader< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > const < a class = "el" href = "structcrashpad_1_1ProcessReaderWin_1_1Thread.html" > ProcessReaderWin::Thread< / a > &   < / td >
< td class = "paramname" > < em > thread< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > < a class = "el" href = "namespacecrashpad.html#a9cae195b61eb9fe7cd4ae9a66e13f00f" > PointerVector< / a > < < a class = "el" href = "classcrashpad_1_1internal_1_1MemorySnapshotWin.html" > MemorySnapshotWin< / a > > *  < / td >
2016-06-23 11:18:01 -04:00
< td class = "paramname" > < em > snapshots< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > uint32_t *  < / td >
< td class = "paramname" > < em > budget_remaining< / em >   < / td >
2016-03-15 19:20:29 -04:00
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > A MemoryCaptureDelegate for Windows. < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramdir" > [in]< / td > < td class = "paramname" > process_reader< / td > < td > A < a class = "el" href = "classcrashpad_1_1ProcessReaderWin.html" title = "Accesses information about another process, identified by a HANDLE. " > ProcessReaderWin< / a > for the target process. < / td > < / tr >
< tr > < td class = "paramdir" > [in]< / td > < td class = "paramname" > thread< / td > < td > The thread being inspected. Memory ranges overlapping this thread's stack will be ignored on the assumption that they're already captured elsewhere. < / td > < / tr >
< tr > < td class = "paramdir" > [in]< / td > < td class = "paramname" > snapshots< / td > < td > A vector of < a class = "el" href = "classcrashpad_1_1internal_1_1MemorySnapshotWin.html" title = "A MemorySnapshot of a memory region in a process on the running system, when the system runs Windows..." > MemorySnapshotWin< / a > to which the captured memory will be added. < / td > < / tr >
2016-06-23 11:18:01 -04:00
< tr > < td class = "paramdir" > [in]< / td > < td class = "paramname" > budget_remaining< / td > < td > If non-null, a pointer to the remaining number of bytes to capture. If this is < code > 0< / code > , no further memory will be captured. < / td > < / tr >
2016-03-15 19:20:29 -04:00
< / table >
< / dd >
< / dl >
< / div >
< / div >
< h2 class = "groupheader" > Member Function Documentation< / h2 >
< a class = "anchor" id = "a7c4d579fb31982209c99a23f48e101df" > < / a >
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > std::vector< < a class = "el" href = "classcrashpad_1_1CheckedRange.html" > CheckedRange< / a > < uint64_t > > crashpad::internal::CaptureMemoryDelegateWin::GetReadableRanges < / td >
< td > (< / td >
< td class = "paramtype" > const < a class = "el" href = "classcrashpad_1_1CheckedRange.html" > CheckedRange< / a > < uint64_t, uint64_t > &   < / td >
< td class = "paramname" > < em > range< / em > < / td > < td > )< / td >
< td > const< / 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 > Given a range to be read from the target process, returns a vector of ranges, representing the readable portions of the original range. < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramdir" > [in]< / td > < td class = "paramname" > range< / td > < td > The range being identified.< / td > < / tr >
< / table >
< / dd >
< / dl >
< dl class = "section return" > < dt > Returns< / dt > < dd > A vector of ranges corresponding to the portion of < em > range< / em > that is readable. < / dd > < / dl >
< p > Implements < a class = "el" href = "classcrashpad_1_1internal_1_1CaptureMemory_1_1Delegate.html#afb86a4905979862f0f759d870aa55bc5" > crashpad::internal::CaptureMemory::Delegate< / a > .< / p >
< / div >
< / div >
< a class = "anchor" id = "a063e4b560d77ead739e89a38e6ee270c" > < / a >
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > bool crashpad::internal::CaptureMemoryDelegateWin::Is64Bit < / td >
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > const< / 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" >
< dl class = "section return" > < dt > Returns< / dt > < dd > < code > true< / code > if the target process is a 64-bit process. < / dd > < / dl >
< p > Implements < a class = "el" href = "classcrashpad_1_1internal_1_1CaptureMemory_1_1Delegate.html#a738b3c5852368e7f1068ce0c15b009ef" > crashpad::internal::CaptureMemory::Delegate< / a > .< / p >
< / div >
< / div >
< a class = "anchor" id = "ac37eea2a0e403aa5eaae898c19106390" > < / a >
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > bool crashpad::internal::CaptureMemoryDelegateWin::ReadMemory < / td >
< td > (< / td >
< td class = "paramtype" > uint64_t  < / td >
< td class = "paramname" > < em > at< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > uint64_t  < / td >
< td class = "paramname" > < em > num_bytes< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > void *  < / td >
< td class = "paramname" > < em > into< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > const< / 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 > Attempts to read < em > num_bytes< / em > bytes from the target process starting at address < em > at< / em > into < em > into< / em > . < / p >
< dl class = "section return" > < dt > Returns< / dt > < dd > < code > true< / code > if the entire region could be read, or < code > false< / code > with an error logged. < / dd > < / dl >
< p > Implements < a class = "el" href = "classcrashpad_1_1internal_1_1CaptureMemory_1_1Delegate.html#ab6534f471abcf16123efd8b2c2e8bfd4" > crashpad::internal::CaptureMemory::Delegate< / a > .< / p >
< / div >
< / div >
< hr / > The documentation for this class was generated from the following files:< ul >
< li > snapshot/win/capture_memory_delegate_win.h< / li >
< li > snapshot/win/capture_memory_delegate_win.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" / >
< / a > 1.8.10
< / small > < / address >
< / body >
< / html >