public override void Marshal(DataOutputStream dos) { base.Marshal(dos); if (dos != null) { try { dos.WriteUnsignedShort((ushort)this._dataValues.Count); for (int idx = 0; idx < this._dataValues.Count; idx++) { FourByteChunk aFourByteChunk = (FourByteChunk)this._dataValues[idx]; aFourByteChunk.Marshal(dos); } } catch (Exception e) { if (PduBase.TraceExceptions) { Trace.WriteLine(e); Trace.Flush(); } this.RaiseExceptionOccured(e); if (PduBase.ThrowExceptions) { throw e; } } } }
public override void Marshal(DataOutputStream dos) { base.Marshal(dos); if (dos != null) { try { dos.WriteUnsignedInt((uint)this._requestID); dos.WriteUnsignedByte((byte)this._requiredReliabilityService); dos.WriteUnsignedShort((ushort)this._pad1); dos.WriteUnsignedByte((byte)this._pad2); dos.WriteUnsignedShort((ushort)this._eventType); dos.WriteUnsignedInt((uint)this._time); dos.WriteUnsignedInt((uint)this._recordIDs.Count); for (int idx = 0; idx < this._recordIDs.Count; idx++) { FourByteChunk aFourByteChunk = (FourByteChunk)this._recordIDs[idx]; aFourByteChunk.Marshal(dos); } } catch (Exception e) { if (PduBase.TraceExceptions) { Trace.WriteLine(e); Trace.Flush(); } this.RaiseExceptionOccured(e); if (PduBase.ThrowExceptions) { throw e; } } } }