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)); }
public override Data OnDeserialize(byte[] data, int length) { var remote = CompressTool.Decompress(data); return(Serilization.ByteArrayToObject <Data>(remote)); }