IMsgCompressor.cs 433 B

12345678910111213141516
  1. namespace XGame.Framework.Network
  2. {
  3. public interface IMsgCompressor
  4. {
  5. /// <summary>
  6. /// 压缩
  7. /// 结果替换原变量
  8. /// </summary>
  9. void Compress(ref byte[] bytes, ref int offset, ref int length);
  10. /// <summary>
  11. /// 解压
  12. /// 结果替换原变量
  13. /// </summary>
  14. void Decompress(ref byte[] bytes, ref int offset, ref int length);
  15. }
  16. }