本文整理汇总了C++中kbengine::MemoryStream::opfini方法的典型用法代码示例。如果您正苦于以下问题:C++ MemoryStream::opfini方法的具体用法?C++ MemoryStream::opfini怎么用?C++ MemoryStream::opfini使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类kbengine::MemoryStream
的用法示例。
在下文中一共展示了MemoryStream::opfini方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: executeRawDatabaseCommand
//-------------------------------------------------------------------------------------
void Dbmgr::executeRawDatabaseCommand(Mercury::Channel* pChannel,
KBEngine::MemoryStream& s)
{
dbThreadPool_.addTask(new DBTaskExecuteRawDatabaseCommand(pChannel->addr(), s));
s.opfini();
numExecuteRawDatabaseCommand_++;
}
示例2: syncEntityStreamTemplate
//-------------------------------------------------------------------------------------
void Dbmgr::syncEntityStreamTemplate(Mercury::Channel* pChannel, KBEngine::MemoryStream& s)
{
KBEAccountTable* pTable =
static_cast<KBEAccountTable*>(EntityTables::getSingleton().findKBETable("kbe_accountinfos"));
KBE_ASSERT(pTable);
pTable->accountDefMemoryStream(s);
s.opfini();
}
示例3: writeEntity
//-------------------------------------------------------------------------------------
void Dbmgr::writeEntity(Mercury::Channel* pChannel,
KBEngine::MemoryStream& s)
{
ENTITY_ID eid;
DBID entityDBID;
COMPONENT_ID componentID;
s >> componentID >> eid >> entityDBID;
bufferedDBTasks_.addTask(new DBTaskWriteEntity(pChannel->addr(), componentID, eid, entityDBID, s));
s.opfini();
numWrittenEntity_++;
}
示例4: executeRawDatabaseCommand
//-------------------------------------------------------------------------------------
void Dbmgr::executeRawDatabaseCommand(Mercury::Channel* pChannel,
KBEngine::MemoryStream& s)
{
ENTITY_ID entityID = -1;
s >> entityID;
if(entityID == -1)
dbThreadPool_.addTask(new DBTaskExecuteRawDatabaseCommand(pChannel->addr(), s));
else
bufferedDBTasks_.addTask(new DBTaskExecuteRawDatabaseCommandByEntity(pChannel->addr(), s, entityID));
s.opfini();
numExecuteRawDatabaseCommand_++;
}
示例5: onRemoteMethodCall
//-------------------------------------------------------------------------------------
void ClientObjectBase::onRemoteMethodCall(Mercury::Channel * pChannel, KBEngine::MemoryStream& s)
{
ENTITY_ID eid;
s >> eid;
client::Entity* entity = pEntities_->find(eid);
if(entity == NULL)
{
s.opfini();
ERROR_MSG(boost::format("ClientObjectBase::onRemoteMethodCall: not found entity(%1%).\n") % eid);
return;
}
entity->onRemoteMethodCall(this->pServerChannel(), s);
}
示例6: removeEntity
//-------------------------------------------------------------------------------------
void Dbmgr::removeEntity(Mercury::Channel* pChannel, KBEngine::MemoryStream& s)
{
ENTITY_ID eid;
DBID entityDBID;
COMPONENT_ID componentID;
s >> componentID >> eid >> entityDBID;
KBE_ASSERT(entityDBID > 0);
bufferedDBTasks_.addTask(new DBTaskRemoveEntity(pChannel->addr(),
componentID, eid, entityDBID, s));
s.opfini();
numRemovedEntity_++;
}