コード例 #1
0
///<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
            {
                _objectID.marshal(dos);
                _referencedObjectID.marshal(dos);
                dos.writeUshort((ushort)_updateNumber);
                dos.writeByte((byte)_forceID);
                dos.writeByte((byte)_linearSegmentParameters.Count);
                _requesterID.marshal(dos);
                _receivingID.marshal(dos);
                _objectType.marshal(dos);

                for (int idx = 0; idx < _linearSegmentParameters.Count; idx++)
                {
                    LinearSegmentParameter aLinearSegmentParameter = (LinearSegmentParameter)_linearSegmentParameters[idx];
                    aLinearSegmentParameter.marshal(dos);
                } // end of list marshalling
            }     // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of marshal method
コード例 #2
0
 ///<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
     {
         _objectID.marshal(dos);
         _referencedObjectID.marshal(dos);
         dos.writeUshort((ushort)_updateNumber);
         dos.writeByte((byte)_forceID);
         dos.writeByte((byte)_modifications);
         _objectType.marshal(dos);
         _objectLocation.marshal(dos);
         _objectOrientation.marshal(dos);
         dos.writeDouble((double)_objectAppearance);
         _requesterID.marshal(dos);
         _receivingID.marshal(dos);
         dos.writeUint((uint)_pad2);
     } // end try
     catch (Exception e)
     {
         Trace.WriteLine(e);
         Trace.Flush();
     }
 } // end of marshal method