IMessagePacker.cs 270 B

123456789101112
  1. using System;
  2. using System.IO;
  3. namespace ETModel
  4. {
  5. public interface IMessagePacker
  6. {
  7. byte[] SerializeToByteArray(object obj);
  8. object DeserializeFrom(Type type, byte[] bytes, int index, int count);
  9. object DeserializeFrom(Type type, MemoryStream stream);
  10. }
  11. }