public override void Marshal(DataOutputStream dos) { base.Marshal(dos); if (dos != null) { try { dos.WriteUnsignedByte((byte)this._requiredReliabilityService); dos.WriteUnsignedShort((ushort)this._pad1); dos.WriteUnsignedByte((byte)this._pad2); dos.WriteUnsignedInt((uint)this._requestID); dos.WriteUnsignedInt((uint)this._timeInterval); dos.WriteUnsignedInt((uint)this._fixedDatumRecords.Count); dos.WriteUnsignedInt((uint)this._variableDatumRecords.Count); for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) { FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; aFixedDatum.Marshal(dos); } for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) { VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; aVariableDatum.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 { this._originatingID.Marshal(dos); this._receivingID.Marshal(dos); dos.WriteUnsignedInt((uint)this._requestID); dos.WriteUnsignedInt((uint)this._requestStatus); dos.WriteUnsignedInt((uint)this._fixedDatums.Count); dos.WriteUnsignedInt((uint)this._variableDatums.Count); for (int idx = 0; idx < this._fixedDatums.Count; idx++) { FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; aFixedDatum.Marshal(dos); } for (int idx = 0; idx < this._variableDatums.Count; idx++) { VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; aVariableDatum.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 { this._aggregateID.Marshal(dos); dos.WriteUnsignedByte((byte)this._forceID); dos.WriteUnsignedByte((byte)this._aggregateState); this._aggregateType.Marshal(dos); dos.WriteUnsignedInt((uint)this._formation); this._aggregateMarking.Marshal(dos); this._dimensions.Marshal(dos); this._orientation.Marshal(dos); this._centerOfMass.Marshal(dos); this._velocity.Marshal(dos); dos.WriteUnsignedShort((ushort)this._aggregateIDList.Count); dos.WriteUnsignedShort((ushort)this._entityIDList.Count); dos.WriteUnsignedShort((ushort)this._silentAggregateSystemList.Count); dos.WriteUnsignedShort((ushort)this._silentEntitySystemList.Count); for (int idx = 0; idx < this._aggregateIDList.Count; idx++) { AggregateID aAggregateID = (AggregateID)this._aggregateIDList[idx]; aAggregateID.Marshal(dos); } for (int idx = 0; idx < this._entityIDList.Count; idx++) { EntityID aEntityID = (EntityID)this._entityIDList[idx]; aEntityID.Marshal(dos); } dos.WriteUnsignedByte((byte)this._pad2); for (int idx = 0; idx < this._silentAggregateSystemList.Count; idx++) { EntityType aEntityType = (EntityType)this._silentAggregateSystemList[idx]; aEntityType.Marshal(dos); } for (int idx = 0; idx < this._silentEntitySystemList.Count; idx++) { EntityType aEntityType = (EntityType)this._silentEntitySystemList[idx]; aEntityType.Marshal(dos); } dos.WriteUnsignedInt((uint)this._variableDatumList.Count); for (int idx = 0; idx < this._variableDatumList.Count; idx++) { VariableDatum aVariableDatum = (VariableDatum)this._variableDatumList[idx]; aVariableDatum.Marshal(dos); } } catch (Exception e) { #if DEBUG Trace.WriteLine(e); Trace.Flush(); #endif this.OnException(e); } } }