Crc16() public method

public Crc16 ( ) : ushort
return ushort
Example #1
0
 public void Read(BufferReader reader)
 {
     offset = reader.Offset;
     length = reader.ReadInt32();
     signature = reader.ReadSignature(2);
     fileCrc = (ushort)reader.ReadInt16();
     actualCrc = reader.Crc16(length);
 }
Example #2
0
 public void Read(BufferReader reader)
 {
     offset    = reader.Offset;
     length    = reader.ReadInt32();
     signature = reader.ReadSignature(2);
     fileCrc   = (ushort)reader.ReadInt16();
     actualCrc = reader.Crc16(length);
 }
Example #3
0
 public void Read(BufferReader reader)
 {
     Offset    = reader.Offset;
     Length    = reader.ReadInt32();
     Signature = reader.ReadSignature(2);
     FileCrc   = (ushort)reader.ReadInt16();
     ActualCrc = reader.Crc16(Length);
 }