} // end of marshal method new public void unmarshal(DataInputStream dis) { base.unmarshal(dis); try { _receivingEntityID.unmarshal(dis); _supplyingEntityID.unmarshal(dis); _numberOfSupplyTypes = dis.readByte(); _padding1 = dis.readShort(); _padding2 = dis.readByte(); for (int idx = 0; idx < _numberOfSupplyTypes; idx++) { SupplyQuantity anX = new SupplyQuantity(); anX.unmarshal(dis); _supplies.Add(anX); } ; } // end try catch (Exception e) { Trace.WriteLine(e); Trace.Flush(); } } // end of unmarshal method
public new void unmarshal(DataInputStream dis) { base.unmarshal(dis); try { _requestingEntityID.unmarshal(dis); _servicingEntityID.unmarshal(dis); _serviceTypeRequested = dis.readByte(); _numberOfSupplyTypes = dis.readByte(); _serviceRequestPadding = dis.readShort(); for(int idx = 0; idx < _numberOfSupplyTypes; idx++) { SupplyQuantity anX = new SupplyQuantity(); anX.unmarshal(dis); _supplies.Add(anX); }; } // end try catch(Exception e) { Trace.WriteLine(e); Trace.Flush(); } }