123456789101112131415 |
- using System;
- using System.IO;
- namespace KYFramework.Network
- {
- public interface IMessagePacker
- {
- byte[] SerializeTo(object obj);
- void SerializeTo(object obj, MemoryStream stream);
- object DeserializeFrom(Type type, byte[] bytes, int index, int count);
- object DeserializeFrom(object instance, byte[] bytes, int index, int count);
- object DeserializeFrom(Type type, MemoryStream stream);
- object DeserializeFrom(object instance, MemoryStream stream);
- }
- }
|