internal FileObjects210(ApplicationLayerParameters parameters, byte[] msg, int startIndex) : base(parameters, msg, startIndex, false) { if (msg.Length - startIndex < GetEncodedSize()) { throw new ASDUParsingException("Message to short"); } ObjectAddress = msg[startIndex]; ObjectAddress += (msg[startIndex + 1] * 0x100); _additionalPacketType = (AdditionalPacketType)msg[startIndex + 2]; _opt = (OptionID)msg[startIndex + 3]; }
public FileObjects210(int objectAddress, AdditionalPacketType additionalPacketType, OptionID opt) : base(0) { _additionalPacketType = additionalPacketType; _opt = opt; }