本文整理汇总了C++中DWARFDataExtractor::GetByteSize方法的典型用法代码示例。如果您正苦于以下问题:C++ DWARFDataExtractor::GetByteSize方法的具体用法?C++ DWARFDataExtractor::GetByteSize怎么用?C++ DWARFDataExtractor::GetByteSize使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DWARFDataExtractor
的用法示例。
在下文中一共展示了DWARFDataExtractor::GetByteSize方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: scoped_timer
bool
DWARFDebugPubnames::Extract(const DWARFDataExtractor& data)
{
Timer scoped_timer (__PRETTY_FUNCTION__,
"DWARFDebugPubnames::Extract (byte_size = %" PRIu64 ")",
(uint64_t)data.GetByteSize());
Log *log (LogChannelDWARF::GetLogIfAll(DWARF_LOG_DEBUG_PUBNAMES));
if (log)
log->Printf("DWARFDebugPubnames::Extract (byte_size = %" PRIu64 ")", (uint64_t)data.GetByteSize());
if (data.ValidOffset(0))
{
lldb::offset_t offset = 0;
DWARFDebugPubnamesSet set;
while (data.ValidOffset(offset))
{
if (set.Extract(data, &offset))
{
m_sets.push_back(set);
offset = set.GetOffsetOfNextEntry();
}
else
break;
}
if (log)
Dump (log);
return true;
}
return false;
}
示例2: Dump
void DWARFDebugMacinfo::Dump(Stream *s, const DWARFDataExtractor &macinfo_data,
lldb::offset_t offset) {
DWARFDebugMacinfoEntry maninfo_entry;
if (macinfo_data.GetByteSize() == 0) {
s->PutCString("< EMPTY >\n");
return;
}
if (offset == LLDB_INVALID_OFFSET) {
offset = 0;
while (maninfo_entry.Extract(macinfo_data, &offset))
maninfo_entry.Dump(s);
} else {
if (maninfo_entry.Extract(macinfo_data, &offset))
maninfo_entry.Dump(s);
}
}