internal PackedSinglePointWithSCD(ApplicationLayerParameters parameters, byte[] msg, int startIndex, bool isSquence) : base(parameters, msg, startIndex, isSquence) { if (!isSquence) { startIndex += parameters.SizeOfIOA; /* skip IOA */ } if ((msg.Length - startIndex) < GetEncodedSize()) { throw new ASDUParsingException("Message too small"); } scd = new StatusAndStatusChangeDetection(msg, startIndex); startIndex += 4; qds = new QualityDescriptor(msg[startIndex++]); }
public PackedSinglePointWithSCD(int objectAddress, StatusAndStatusChangeDetection scd, QualityDescriptor quality) : base(objectAddress) { this.scd = scd; this.qds = quality; }