示例#1
0
文件: Chunk.cs 项目: lubota/spartacus
 public bool hasGoodCRC()
 {
     CRC32 computedCRC = new CRC32();
     computedCRC.Update(type, 0, 4);
     computedCRC.Update(data, 0, (int) chunkLength);
     return (computedCRC.GetValue() == this.crc);
 }