public override void Unmarshal(DataInputStream dis) { base.Unmarshal(dis); if (dis != null) { try { this._numberOfValues = dis.ReadUnsignedShort(); for (int idx = 0; idx < this.NumberOfValues; idx++) { FourByteChunk anX = new FourByteChunk(); anX.Unmarshal(dis); this._dataValues.Add(anX); } } catch (Exception e) { if (PduBase.TraceExceptions) { Trace.WriteLine(e); Trace.Flush(); } this.RaiseExceptionOccured(e); if (PduBase.ThrowExceptions) { throw e; } } } }
public override void Unmarshal(DataInputStream dis) { base.Unmarshal(dis); if (dis != null) { try { this._requestID = dis.ReadUnsignedInt(); this._requiredReliabilityService = dis.ReadUnsignedByte(); this._pad1 = dis.ReadUnsignedShort(); this._pad2 = dis.ReadUnsignedByte(); this._eventType = dis.ReadUnsignedShort(); this._time = dis.ReadUnsignedInt(); this._numberOfRecords = dis.ReadUnsignedInt(); for (int idx = 0; idx < this.NumberOfRecords; idx++) { FourByteChunk anX = new FourByteChunk(); anX.Unmarshal(dis); this._recordIDs.Add(anX); } } catch (Exception e) { if (PduBase.TraceExceptions) { Trace.WriteLine(e); Trace.Flush(); } this.RaiseExceptionOccured(e); if (PduBase.ThrowExceptions) { throw e; } } } }