示例#1
0
        public override ImageFile.FileData OnDeserialize(byte[] data, int length)
        {
            var dataValid = data.SubArray(0, length);
            var newData   = CompressTool.Decompress(dataValid, CompressTool.CompressAlgorithm.Zstd);

            return(ImageFile.FileData.Parser.ParseFrom(newData));
        }
示例#2
0
            public override Data OnDeserialize(byte[] data, int length)
            {
                var remote = CompressTool.Decompress(data);

                return(Serilization.ByteArrayToObject <Data>(remote));
            }