本文整理汇总了C++中sle::pointer::getfieldu32方法的典型用法代码示例。如果您正苦于以下问题:C++ pointer::getfieldu32方法的具体用法?C++ pointer::getfieldu32怎么用?C++ pointer::getfieldu32使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类sle::pointer
的用法示例。
在下文中一共展示了pointer::getfieldu32方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: canonical_gt
ter
createoffer::checkacceptasset(issueref issue) const
{
/* only valid for custom currencies */
assert (!isxrp (issue.currency));
assert (!isvbc (issue.currency));
sle::pointer const issueraccount = mengine->entrycache (
ltaccount_root, getaccountrootindex (issue.account));
if (!issueraccount)
{
if (m_journal.warning) m_journal.warning <<
"delay: can't receive ious from non-existent issuer: " <<
to_string (issue.account);
return (mparams & tapretry)
? terno_account
: tecno_issuer;
}
if (issueraccount->getfieldu32 (sfflags) & lsfrequireauth)
{
sle::pointer const trustline (mengine->entrycache (
ltripple_state, getripplestateindex (
mtxnaccountid, issue.account, issue.currency)));
if (!trustline)
{
return (mparams & tapretry)
? terno_line
: tecno_line;
}
// entries have a canonical representation, determined by a
// lexicographical "greater than" comparison employing strict weak
// ordering. determine which entry we need to access.
bool const canonical_gt (mtxnaccountid > issue.account);
bool const is_authorized (trustline->getfieldu32 (sfflags) &
(canonical_gt ? lsflowauth : lsfhighauth));
if (!is_authorized)
{
if (m_journal.debug) m_journal.debug <<
"delay: can't receive ious from issuer without auth.";
return (mparams & tapretry)
? terno_auth
: tecno_auth;
}
}
return tessuccess;
}