예제 #1
0
 // Checksums
 protected override void setChecksums()
 {
     for (int i = 0; i < BLOCK_COUNT; i++)
     {
         byte[] chunk = Data.Skip(ABO + i * SIZE_BLOCK).Take(chunkLength[BlockOrder[i]]).ToArray();
         ushort chk   = SaveUtil.check32(chunk);
         BitConverter.GetBytes(chk).CopyTo(Data, ABO + i * SIZE_BLOCK + 0xFF6);
     }
 }