Exemple #1
0
        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);
        }
Exemple #2
0
 public override void UpdateBufferFromValue(byte[] buffer)
 {
     buffer[Position]     = BufferHelper.GetMSB(Value, ElementDirection);
     buffer[Position + 1] = BufferHelper.GetLSB(Value, ElementDirection);
 }