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._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) { FixedDatum anX = new FixedDatum(); anX.Unmarshal(dis); this._fixedDatumRecords.Add(anX); } ; for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) { VariableDatum anX = new VariableDatum(); anX.Unmarshal(dis); this._variableDatumRecords.Add(anX); } ; } catch (Exception e) { #if DEBUG Trace.WriteLine(e); Trace.Flush(); #endif this.OnException(e); } } }
public override void Unmarshal(DataInputStream dis) { base.Unmarshal(dis); if (dis != null) { try { this._eventType = dis.ReadUnsignedInt(); this._padding1 = dis.ReadUnsignedInt(); this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) { FixedDatum anX = new FixedDatum(); anX.Unmarshal(dis); this._fixedDatums.Add(anX); } ; for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) { VariableDatum anX = new VariableDatum(); anX.Unmarshal(dis); this._variableDatums.Add(anX); } ; } catch (Exception e) { #if DEBUG Trace.WriteLine(e); Trace.Flush(); #endif this.OnException(e); } } }
public virtual void Unmarshal(DataInputStream dis) { if (dis != null) { try { this._numberOfFixedDatums = dis.ReadUnsignedInt(); this._numberOfVariableDatums = dis.ReadUnsignedInt(); for (int idx = 0; idx < this.NumberOfFixedDatums; idx++) { FixedDatum anX = new FixedDatum(); anX.Unmarshal(dis); this._fixedDatumIDList.Add(anX); }; for (int idx = 0; idx < this.NumberOfVariableDatums; idx++) { VariableDatum anX = new VariableDatum(); anX.Unmarshal(dis); this._variableDatumIDList.Add(anX); }; } catch (Exception e) { #if DEBUG Trace.WriteLine(e); Trace.Flush(); #endif this.OnException(e); } } }
public override void Unmarshal(DataInputStream dis) { base.Unmarshal(dis); if (dis != null) { try { this._aggregateID.Unmarshal(dis); this._forceID = dis.ReadUnsignedByte(); this._aggregateState = dis.ReadUnsignedByte(); this._aggregateType.Unmarshal(dis); this._formation = dis.ReadUnsignedInt(); this._aggregateMarking.Unmarshal(dis); this._dimensions.Unmarshal(dis); this._orientation.Unmarshal(dis); this._centerOfMass.Unmarshal(dis); this._velocity.Unmarshal(dis); this._numberOfDisAggregates = dis.ReadUnsignedShort(); this._numberOfDisEntities = dis.ReadUnsignedShort(); this._numberOfSilentAggregateTypes = dis.ReadUnsignedShort(); this._numberOfSilentEntityTypes = dis.ReadUnsignedShort(); for (int idx = 0; idx < this.NumberOfDisAggregates; idx++) { AggregateID anX = new AggregateID(); anX.Unmarshal(dis); this._aggregateIDList.Add(anX); } ; for (int idx = 0; idx < this.NumberOfDisEntities; idx++) { EntityID anX = new EntityID(); anX.Unmarshal(dis); this._entityIDList.Add(anX); } ; this._pad2 = dis.ReadUnsignedByte(); for (int idx = 0; idx < this.NumberOfSilentAggregateTypes; idx++) { EntityType anX = new EntityType(); anX.Unmarshal(dis); this._silentAggregateSystemList.Add(anX); } ; for (int idx = 0; idx < this.NumberOfSilentEntityTypes; idx++) { EntityType anX = new EntityType(); anX.Unmarshal(dis); this._silentEntitySystemList.Add(anX); } ; this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) { VariableDatum anX = new VariableDatum(); anX.Unmarshal(dis); this._variableDatumList.Add(anX); } ; } catch (Exception e) { #if DEBUG Trace.WriteLine(e); Trace.Flush(); #endif this.OnException(e); } } }