public new byte[] SerializeJson() { var ori = base.SerializeJson(); var zip = DataCompress.Zip(ori); return(zip); }
public void DeserializeBin(byte[] oriData, bool depress) { if (depress) { var unZip = DataCompress.UnzipBin(oriData); base.DeserializeBin(unZip); } else { base.DeserializeBin(oriData); } }
public new void DeserializeBin(byte[] oriData) { if (needToCompress) { var unZip = DataCompress.UnzipBin(oriData); base.DeserializeBin(unZip); } else { base.DeserializeBin(oriData); } }
public byte[] SerializeBin(bool compress) { var ori = base.SerializeBin(); if (compress) { var zip = DataCompress.ZipBin(ori); return(zip); } else { return(ori); } }
public new byte[] SerializeBin() { var ori = base.SerializeBin(); if (needToCompress) { var zip = DataCompress.ZipBin(ori); return(zip); } else { return(ori); } }
public void DeserializeJson(byte[] zipData) { var unZip = DataCompress.Unzip(zipData); base.DeserializeJson(unZip); }