本文整理汇总了C++中Address::GetBase方法的典型用法代码示例。如果您正苦于以下问题:C++ Address::GetBase方法的具体用法?C++ Address::GetBase怎么用?C++ Address::GetBase使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Address
的用法示例。
在下文中一共展示了Address::GetBase方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Translate
MEDUSA_NAMESPACE_BEGIN
bool CpuContext::Translate(Address const& rLogicalAddress, u64& rLinearAddress) const
{
auto itAddr = m_AddressMap.find(Address(rLogicalAddress.GetBase(), 0x0));
if (itAddr != std::end(m_AddressMap))
{
rLinearAddress = itAddr->second + rLogicalAddress.GetOffset();
return true;
}
rLinearAddress = rLogicalAddress.GetOffset();
return true;
}
示例2: IsCellPresent
bool IsCellPresent(Address const& rAddress) const
{
if (GetBaseAddress().GetBase() != rAddress.GetBase())
return false;
return IsCellPresent(rAddress.GetOffset());
}
示例3: _FormatAddress
void FormatDisassembly::_FormatAddress(Address const& rAddress, u32 Flags)
{
if (rAddress.GetBase() != 0x0 && rAddress.GetBaseSize() != 0x0)
m_rPrintData.AppendImmediate(rAddress.GetBase(), rAddress.GetBaseSize()).AppendOperator(":");
m_rPrintData.AppendImmediate(rAddress.GetOffset(), rAddress.GetOffsetSize()).AppendSpace(8);
}