mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
[+] UpdateNetwork Module
[+] UpdateNetwork Module
This commit is contained in:
@@ -18,6 +18,16 @@ public partial class ProtobufUtility
|
||||
{
|
||||
((IMessage)message).WriteTo(stream);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 消息压入内存流。
|
||||
/// </summary>
|
||||
/// <param name="message"></param>
|
||||
/// <param name="stream"></param>
|
||||
public static void ToStream(object message, Stream stream)
|
||||
{
|
||||
((IMessage)message).WriteTo(stream);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 比特流解析。
|
||||
|
Reference in New Issue
Block a user