Beispiel #1
0
 /// <summary>
 /// Update CRC data checksum based on a portion of a block of data
 /// </summary>
 /// <param name = "segment">
 /// The chunk of data to add
 /// </param>
 public void Update(ArraySegment <byte> segment)
 {
     checkValue = Proxy.Append(checkValue, segment.Array, segment.Offset, segment.Count);
 }
Beispiel #2
0
 /// <summary>
 /// Updates the checksum with the int bval.
 /// </summary>
 /// <param name = "bval">
 /// the byte is taken as the lower 8 bits of bval
 /// </param>
 /// <remarks>Reversed Data = true</remarks>
 public void Update(int bval)
 {
     checkValue = Proxy.Append(checkValue, new[] { (byte)bval }, 0, 1);
 }