public override bool Equals(Clob clob)
{
CompressedClob cb = clob as CompressedClob;
if (cb == null) return false;
if (this == cb) return true;
if ((this.compression != cb.compression && this.compression != null && !this.compression.Equals(cb.compression)) || !this.encoding.Equals(cb.encoding)) return false;
byte[] a = this.data, b = cb.data;
if (a.Length != b.Length) return false;
for (int i = 0; i < a.Length; i++)
if (a[i] != b[i])
return false;
return true;
}
}