/// <summary> Called after setting data, before writing to os </summary> int ComputeCrc() { Zlib.CRC32 crcengine = PngHelperInternal.GetCRC(); crcengine.Reset(); crcengine.Update(IdBytes, 0, 4); if (Len > 0) { crcengine.Update(Data, 0, Len); } return((int)crcengine.GetValue()); }
public int ComputeCrc() { CRC32 cRC = PngHelperInternal.GetCRC(); cRC.Reset(); cRC.Update(IdBytes, 0, 4); if (Length > 0) { cRC.Update(Data, 0, Length); } return((int)cRC.GetValue()); }