public override void UpdateBufferFromValue(byte[] buffer) { if (TargetElement == null) { return; } //update Value first and leave dirty job to base.. Value.Hash = _referenceCRC.Hash = CRC.GetCRC16(buffer, TargetElement.Position, TargetElement.Size).Hash; buffer[Position] = BufferHelper.GetMSB(Value.Hash, ElementDirection); buffer[Position + 1] = BufferHelper.GetLSB(Value.Hash, ElementDirection); }
public override void UpdateBufferFromValue(byte[] buffer) { buffer[Position] = BufferHelper.GetMSB(Value, ElementDirection); buffer[Position + 1] = BufferHelper.GetLSB(Value, ElementDirection); }