当前位置: 首页>>代码示例>>C#>>正文


C# DataOutputStream.writeByte方法代码示例

本文整理汇总了C#中DISnet.DataStreamUtilities.DataOutputStream.writeByte方法的典型用法代码示例。如果您正苦于以下问题:C# DataOutputStream.writeByte方法的具体用法?C# DataOutputStream.writeByte怎么用?C# DataOutputStream.writeByte使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在DISnet.DataStreamUtilities.DataOutputStream的用法示例。


在下文中一共展示了DataOutputStream.writeByte方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: marshal

        ///<summary>
        ///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
        ///</summary>
        public new void marshal(DataOutputStream dos)
        {
            base.marshal(dos);
            try
            {
               _entityID.marshal(dos);
               dos.writeByte((byte)_padding1);
               dos.writeByte((byte)_articulationParameters.Count);
               _entityLinearVelocity.marshal(dos);
               _entityLocation.marshal(dos);
               _entityOrientation.marshal(dos);
               dos.writeUint((uint)_entityAppearance);

               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();
            }
        }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:29,代码来源:EntityStateUpdatePdu.cs

示例2: marshal

        ///<summary>
        ///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
        ///</summary>
        public new 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();
            }
        }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:34,代码来源:EntityStatePdu.cs

示例3: marshal

        ///<summary>
        ///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
        ///</summary>
        public void marshal(DataOutputStream dos)
        {
            try
            {
                dos.writeByte((byte)_systemDataLength);
                dos.writeByte((byte)_beamDataRecords.Count);
                dos.writeUshort((ushort)_emissionsPadding2);
                _emitterSystem.marshal(dos);
                _location.marshal(dos);

                for(int idx = 0; idx < _beamDataRecords.Count; idx++)
                {
                    ElectronicEmissionBeamData aElectronicEmissionBeamData = (ElectronicEmissionBeamData)_beamDataRecords[idx];
                    aElectronicEmissionBeamData.marshal(dos);
                } // end of list marshalling

            } // end try
            catch(Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:26,代码来源:ElectronicEmissionSystemData.cs

示例4: marshal

 ///<summary>
 ///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
 ///</summary>
 public new 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();
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:27,代码来源:PointObjectStatePdu.cs

示例5: marshal

        ///<summary>
        ///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
        ///</summary>
        public new void marshal(DataOutputStream dos)
        {
            base.marshal(dos);
            try
            {
               dos.writeByte((byte)_controlType);
               dos.writeByte((byte)_communicationsChannelType);
               _sourceEntityID.marshal(dos);
               dos.writeByte((byte)_sourceCommunicationsDeviceID);
               dos.writeByte((byte)_sourceLineID);
               dos.writeByte((byte)_transmitPriority);
               dos.writeByte((byte)_transmitLineState);
               dos.writeByte((byte)_command);
               _masterEntityID.marshal(dos);
               dos.writeUshort((ushort)_masterCommunicationsDeviceID);
               dos.writeUint((uint)_intercomParameters.Count);

               for(int idx = 0; idx < _intercomParameters.Count; idx++)
               {
            IntercomCommunicationsParameters aIntercomCommunicationsParameters = (IntercomCommunicationsParameters)_intercomParameters[idx];
            aIntercomCommunicationsParameters.marshal(dos);
               } // end of list marshalling

            } // end try
            catch(Exception e)
            {
              Trace.WriteLine(e);
              Trace.Flush();
            }
        }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:33,代码来源:IntercomControlPdu.cs

示例6: marshal

        ///<summary>
        ///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
        ///</summary>
        public void marshal(DataOutputStream dos)
        {
            try
            {

                for(int idx = 0; idx < _otherParameters.Length; idx++)
                {
                    dos.writeByte(_otherParameters[idx]);
                } // end of array marshaling

            } // end try
            catch(Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:20,代码来源:FourByteChunk.cs

示例7: marshal

 ///<summary>
 ///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
 ///</summary>
 public void marshal(DataOutputStream dos)
 {
     try
     {
        dos.writeByte((byte)_layerNumber);
        dos.writeByte((byte)_layerSpecificInformaiton);
        dos.writeUshort((ushort)_length);
     } // end try
     catch(Exception e)
     {
       Trace.WriteLine(e);
       Trace.Flush();
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:17,代码来源:LayerHeader.cs

示例8: marshal

        ///<summary>
        ///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
        ///</summary>
        public new void marshal(DataOutputStream dos)
        {
            base.marshal(dos);
            try
            {
                _orginatingEntityID.marshal(dos);
                _recevingEntityID.marshal(dos);
                dos.writeUint((uint)_requestID);
                dos.writeByte((byte)_requiredReliabilityService);
                dos.writeByte((byte)_tranferType);
                _transferEntityID.marshal(dos);
                dos.writeByte((byte)_recordSets.Count);

                for(int idx = 0; idx < _recordSets.Count; idx++)
                {
                    RecordSet aRecordSet = (RecordSet)_recordSets[idx];
                    aRecordSet.marshal(dos);
                } // end of list marshalling

            } // end try
            catch(Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:29,代码来源:TransferControlRequestPdu.cs

示例9: marshal

        ///<summary>
        ///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
        ///</summary>
        public new void marshal(DataOutputStream dos)
        {
            base.marshal(dos);
            try
            {
                _environmentalSimulationApplicationID.marshal(dos);
                dos.writeUshort((ushort)_fieldNumber);
                dos.writeUshort((ushort)_pduNumber);
                dos.writeUshort((ushort)_pduTotal);
                dos.writeUshort((ushort)_coordinateSystem);
                dos.writeByte((byte)_gridDataList.Count);
                dos.writeByte((byte)_constantGrid);
                _environmentType.marshal(dos);
                _orientation.marshal(dos);
                dos.writeLong((long)_sampleTime);
                dos.writeUint((uint)_totalValues);
                dos.writeByte((byte)_vectorDimension);
                dos.writeUshort((ushort)_padding1);
                dos.writeByte((byte)_padding2);

                for(int idx = 0; idx < _gridDataList.Count; idx++)
                {
                    GridAxisRecord aGridAxisRecord = (GridAxisRecord)_gridDataList[idx];
                    aGridAxisRecord.marshal(dos);
                } // end of list marshalling

            } // end try
            catch(Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:36,代码来源:GriddedDataPdu.cs

示例10: marshal

 ///<summary>
 ///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
 ///</summary>
 public void marshal(DataOutputStream dos)
 {
     try
     {
        dos.writeUint((uint)_environmentType);
        dos.writeByte((byte)_length);
        dos.writeByte((byte)_index);
        dos.writeByte((byte)_padding1);
        dos.writeByte((byte)_geometry);
        dos.writeByte((byte)_padding2);
     } // end try
     catch(Exception e)
     {
       Trace.WriteLine(e);
       Trace.Flush();
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:20,代码来源:Environment.cs

示例11: marshal

 ///<summary>
 ///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
 ///</summary>
 public void marshal(DataOutputStream dos)
 {
     try
     {
         dos.writeByte((byte)_segmentNumber);
         _segmentAppearance.marshal(dos);
         _location.marshal(dos);
         _orientation.marshal(dos);
         dos.writeUshort((ushort)_segmentLength);
         dos.writeUshort((ushort)_segmentWidth);
         dos.writeUshort((ushort)_segmentHeight);
         dos.writeUshort((ushort)_segmentDepth);
         dos.writeUint((uint)_pad1);
     } // end try
     catch(Exception e)
     {
         Trace.WriteLine(e);
         Trace.Flush();
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:23,代码来源:LinearSegmentParameter.cs

示例12: marshal

 ///<summary>
 ///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
 ///</summary>
 public new void marshal(DataOutputStream dos)
 {
     base.marshal(dos);
     try
     {
         _designatingEntityID.marshal(dos);
         dos.writeUshort((ushort)_codeName);
         _designatedEntityID.marshal(dos);
         dos.writeUshort((ushort)_designatorCode);
         dos.writeFloat((float)_designatorPower);
         dos.writeFloat((float)_designatorWavelength);
         _designatorSpotWrtDesignated.marshal(dos);
         _designatorSpotLocation.marshal(dos);
         dos.writeByte((byte)_deadReckoningAlgorithm);
         dos.writeUshort((ushort)_padding1);
         dos.writeByte((byte)_padding2);
         _entityLinearAcceleration.marshal(dos);
     } // end try
     catch(Exception e)
     {
         Trace.WriteLine(e);
         Trace.Flush();
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:27,代码来源:DesignatorPdu.cs

示例13: marshal

        ///<summary>
        ///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
        ///</summary>
        public new void marshal(DataOutputStream dos)
        {
            base.marshal(dos);
            try
            {
                _environementalProcessID.marshal(dos);
                _environmentType.marshal(dos);
                dos.writeByte((byte)_modelType);
                dos.writeByte((byte)_environmentStatus);
                dos.writeByte((byte)_environmentRecords.Count);
                dos.writeUshort((ushort)_sequenceNumber);

                for(int idx = 0; idx < _environmentRecords.Count; idx++)
                {
                    Environment aEnvironment = (Environment)_environmentRecords[idx];
                    aEnvironment.marshal(dos);
                } // end of list marshalling

            } // end try
            catch(Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:28,代码来源:EnvironmentalProcessPdu.cs

示例14: marshal

 ///<summary>
 ///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
 ///</summary>
 public new void marshal(DataOutputStream dos)
 {
     base.marshal(dos);
     try
     {
         _entityID.marshal(dos);
         dos.writeUshort((ushort)_communicationsDeviceID);
         dos.writeUshort((ushort)_encodingScheme);
         dos.writeUshort((ushort)_tdlType);
         dos.writeUint((uint)_sampleRate);
         dos.writeUshort((ushort)_data.Length);
         dos.writeUshort((ushort)_samples);
         dos.writeByte (_data);
     } // end try
     catch(Exception e)
     {
         Trace.WriteLine(e);
         Trace.Flush();
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:23,代码来源:IntercomSignalPdu.cs

示例15: marshal

 ///<summary>
 ///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
 ///</summary>
 public void marshal(DataOutputStream dos)
 {
     try
     {
         dos.writeByte((byte)_systemStatus);
         dos.writeByte((byte)_alternateParameter4);
         dos.writeByte((byte)_informationLayers);
         dos.writeByte((byte)_modifier);
         dos.writeUshort((ushort)_parameter1);
         dos.writeUshort((ushort)_parameter2);
         dos.writeUshort((ushort)_parameter3);
         dos.writeUshort((ushort)_parameter4);
         dos.writeUshort((ushort)_parameter5);
         dos.writeUshort((ushort)_parameter6);
     } // end try
     catch(Exception e)
     {
         Trace.WriteLine(e);
         Trace.Flush();
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:24,代码来源:IffFundamentalData.cs


注:本文中的DISnet.DataStreamUtilities.DataOutputStream.writeByte方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。