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 DEBUG Trace.WriteLine(e); Trace.Flush(); #endif this.OnException(e); } } }
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 DEBUG Trace.WriteLine(e); Trace.Flush(); #endif this.OnException(e); } } }
public virtual void Marshal(DataOutputStream dos) { if (dos != null) { try { dos.WriteUnsignedInt((uint)this._records.Count); for (int idx = 0; idx < this._records.Count; idx++) { FourByteChunk aFourByteChunk = (FourByteChunk)this._records[idx]; aFourByteChunk.Marshal(dos); } } catch (Exception e) { #if DEBUG Trace.WriteLine(e); Trace.Flush(); #endif this.OnException(e); } } }