本文整理汇总了C#中KBEngine.MemoryStream.append方法的典型用法代码示例。如果您正苦于以下问题:C# MemoryStream.append方法的具体用法?C# MemoryStream.append怎么用?C# MemoryStream.append使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类KBEngine.MemoryStream
的用法示例。
在下文中一共展示了MemoryStream.append方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: importMessagesFromMemoryStream
/*
从二进制流导入消息协议
*/
public bool importMessagesFromMemoryStream(byte[] loginapp_clientMessages, byte[] baseapp_clientMessages, byte[] entitydefMessages, byte[] serverErrorsDescr)
{
resetMessages();
loadingLocalMessages_ = true;
MemoryStream stream = new MemoryStream();
stream.append(loginapp_clientMessages, (UInt32)0, (UInt32)loginapp_clientMessages.Length);
currserver = "loginapp";
onImportClientMessages(stream);
stream = new MemoryStream();
stream.append(baseapp_clientMessages, (UInt32)0, (UInt32)baseapp_clientMessages.Length);
currserver = "baseapp";
onImportClientMessages(stream);
currserver = "loginapp";
stream = new MemoryStream();
stream.append(serverErrorsDescr, (UInt32)0, (UInt32)serverErrorsDescr.Length);
onImportServerErrorsDescr(stream);
stream = new MemoryStream();
stream.append(entitydefMessages, (UInt32)0, (UInt32)entitydefMessages.Length);
onImportClientEntityDef(stream);
loadingLocalMessages_ = false;
loginappMessageImported_ = true;
baseappMessageImported_ = true;
entitydefImported_ = true;
isImportServerErrorsDescr_ = true;
currserver = "";
Dbg.DEBUG_MSG("KBEngine::importMessagesFromMemoryStream(): is successfully!");
return true;
}