本文整理汇总了C++中uint128_t::low方法的典型用法代码示例。如果您正苦于以下问题:C++ uint128_t::low方法的具体用法?C++ uint128_t::low怎么用?C++ uint128_t::low使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类uint128_t
的用法示例。
在下文中一共展示了uint128_t::low方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: waitRequest
bool RequestHandler::waitRequest( const uint32_t requestID, uint128_t& rUint128,
const uint32_t timeout )
{
Request::Result result;
if( !_impl->waitRequest( requestID, result, timeout ))
return false;
rUint128.high() = result.rUint128.high;
rUint128.low() = result.rUint128.low;
return true;
}
示例2: builder
::zeroeq::Event serializeRequest( const uint128_t& eventType )
{
::zeroeq::Event event( ::zeroeq::vocabulary::EVENT_REQUEST );
flatbuffers::FlatBufferBuilder& fbb = event.getFBB();
RequestBuilder builder( fbb );
builder.add_eventHigh( eventType.high( ));
builder.add_eventLow( eventType.low( ));
fbb.Finish( builder.Finish( ));
return event;
}
示例3: serveRequest
void RequestHandler::serveRequest( const uint32_t requestID,
const uint128_t& result )
{
Request* request = 0;
{
ScopedFastWrite mutex( _impl->lock );
RequestHashCIter i = _impl->requests.find( requestID );
if( i != _impl->requests.end( ))
request = i->second;
}
if( request )
{
request->result.rUint128.low = result.low();
request->result.rUint128.high = result.high();
request->lock.unset();
}
}
示例4: toJSON
template<> ZEROBUF_INL void toJSON( const uint128_t& value, Json::Value& json )
{
json[ "high" ] = Json::UInt64( value.high( ));
json[ "low" ] = Json::UInt64( value.low( ));
}