/// <summary> /// Returns a string representation of the packet. This is /// a human readable formated representation that has nothing /// to do with OpenPGP or RFC2440 /// </summary> /// <returns>String representation of the packet.</returns> /// <remarks>No remarks</remarks> public override string ToString() { string strReturn = "Compressed Data Packet:\r\n"; strReturn += "Algorithm: " + caAlgorithm.ToString() + "\r\n"; strReturn += "Compressed Data: "; for (int i = 0; i < this.bCompressedData.Length; i++) { string strByte = bCompressedData[i].ToString("x"); if (strByte.Length < 2) { strByte = "0" + strByte; } strReturn += ":" + strByte; } strReturn += "\r\n----\r\n\r\n"; return(strReturn); }