using XGame.Framework.Utils; namespace XGame.Framework.Network { public class ZstdCompressor : IMsgCompressor { public void Compress(ref byte[] bytes, ref int offset, ref int length) { //TODO zstd压缩 return; //var body = new byte[length]; //System.Array.Copy(bytes, offset, body, 0, length); ////body = SecurityUtils.ZstdCompress(body); //var target = new byte[offset + body.Length]; //System.Array.Copy(bytes, 0, target, 0, offset); //System.Array.Copy(body, 0, target, offset, body.Length); //bytes = target; //length = body.Length; //////return BytesWrapperPool.Acquire(target, offset, body.Length); } public void Decompress(ref byte[] bytes, ref int offset, ref int length) { //TODO zstd压缩 return; //var body = new byte[length]; //System.Array.Copy(bytes, offset, body, 0, length); ////body = SecurityUtils.ZstdDecompress(body); //var target = new byte[offset + body.Length]; //System.Array.Copy(bytes, 0, target, 0, offset); //System.Array.Copy(body, 0, target, offset, body.Length); //bytes = target; //length = body.Length; ////return BytesWrapperPool.Acquire(target, offset, body.Length); } } }