///<summary> ///Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method ///</summary> new public void marshal(DataOutputStream dos) { base.marshal(dos); try { _munitionID.marshal(dos); _eventID.marshal(dos); _velocity.marshal(dos); _locationInWorldCoordinates.marshal(dos); _burstDescriptor.marshal(dos); _locationInEntityCoordinates.marshal(dos); dos.writeByte((byte)_detonationResult); dos.writeByte((byte)_articulationParameters.Count); dos.writeShort((short)_pad); for (int idx = 0; idx < _articulationParameters.Count; idx++) { ArticulationParameter aArticulationParameter = (ArticulationParameter)_articulationParameters[idx]; aArticulationParameter.marshal(dos); } // end of list marshalling } // end try catch (Exception e) { Trace.WriteLine(e); Trace.Flush(); } } // end of marshal method
///<summary> ///Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method ///</summary> new public void marshal(DataOutputStream dos) { base.marshal(dos); try { _entityID.marshal(dos); dos.writeByte((byte)_forceId); dos.writeByte((byte)_articulationParameters.Count); _entityType.marshal(dos); _alternativeEntityType.marshal(dos); _entityLinearVelocity.marshal(dos); _entityLocation.marshal(dos); _entityOrientation.marshal(dos); dos.writeUint((uint)_entityAppearance); _deadReckoningParameters.marshal(dos); _marking.marshal(dos); dos.writeUint((uint)_capabilities); for (int idx = 0; idx < _articulationParameters.Count; idx++) { ArticulationParameter aArticulationParameter = (ArticulationParameter)_articulationParameters[idx]; aArticulationParameter.marshal(dos); } // end of list marshalling } // end try catch (Exception e) { Trace.WriteLine(e); Trace.Flush(); } } // end of marshal method
///<summary> ///Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method ///</summary> new public void marshal(DataOutputStream dos) { base.marshal(dos); try { dos.writeUshort((ushort)_site); dos.writeUshort((ushort)_application); dos.writeUshort((ushort)_entity); dos.writeByte((byte)_forceId); dos.writeByte((byte)_articulationParameters.Count); dos.writeByte((byte)_entityKind); dos.writeByte((byte)_domain); dos.writeUshort((ushort)_country); dos.writeByte((byte)_category); dos.writeByte((byte)_subcategory); dos.writeByte((byte)_specific); dos.writeByte((byte)_extra); dos.writeByte((byte)_altEntityKind); dos.writeByte((byte)_altDomain); dos.writeUshort((ushort)_altCountry); dos.writeByte((byte)_altCategory); dos.writeByte((byte)_altSubcategory); dos.writeByte((byte)_altSpecific); dos.writeByte((byte)_altExtra); dos.writeFloat((float)_xVelocity); dos.writeFloat((float)_yVelocity); dos.writeFloat((float)_zVelocity); dos.writeDouble((double)_xLocation); dos.writeDouble((double)_yLocation); dos.writeDouble((double)_zLocation); dos.writeFloat((float)_psi); dos.writeFloat((float)_theta); dos.writeFloat((float)_phi); dos.writeUint((uint)_entityAppearance); dos.writeByte((byte)_deadReckoningAlgorithm); for (int idx = 0; idx < _otherParameters.Length; idx++) { dos.writeByte(_otherParameters[idx]); } // end of array marshaling dos.writeFloat((float)_xAcceleration); dos.writeFloat((float)_yAcceleration); dos.writeFloat((float)_zAcceleration); dos.writeFloat((float)_xAngularVelocity); dos.writeFloat((float)_yAngularVelocity); dos.writeFloat((float)_zAngularVelocity); for (int idx = 0; idx < _marking.Length; idx++) { dos.writeByte(_marking[idx]); } // end of array marshaling dos.writeUint((uint)_capabilities); for (int idx = 0; idx < _articulationParameters.Count; idx++) { ArticulationParameter aArticulationParameter = (ArticulationParameter)_articulationParameters[idx]; aArticulationParameter.marshal(dos); } // end of list marshalling } // end try catch (Exception e) { Trace.WriteLine(e); Trace.Flush(); } } // end of marshal method