IMsgParser.cs 367 B

1234567891011121314151617
  1. using XGame.Framework.Network.Protobuf;
  2. namespace XGame.Framework.Network
  3. {
  4. public interface IMsgParser
  5. {
  6. void WriteTo(CodedOutputStream output);
  7. void MergeFrom(CodedInputStream input);
  8. int CalculateSize();
  9. void Clear();
  10. }
  11. // public interface IMsgParser<T> : IMsgParser where T : IMsgParser<T>
  12. // {
  13. //
  14. // }
  15. }