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


C# DataOutputStream.WriteUnsignedInt方法代码示例

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


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

示例1: Marshal

 public virtual void Marshal(DataOutputStream dos)
 {
     if (dos != null)
     {
         try
         {
             dos.WriteUnsignedInt((uint)this._recordType);
             dos.WriteUnsignedShort((ushort)this._recordLength);
             dos.WriteUnsignedByte((byte)this._ioStatus);
             dos.WriteUnsignedByte((byte)this._ioLinkType);
             this._ioEffect.Marshal(dos);
             dos.WriteUnsignedByte((byte)this._ioEffectDutyCycle);
             dos.WriteUnsignedShort((ushort)this._ioEffectDuration);
             dos.WriteUnsignedShort((ushort)this._ioProcess);
             dos.WriteUnsignedShort((ushort)this._padding);
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:26,代码来源:IOEffect.cs

示例2: Marshal

 public virtual void Marshal(DataOutputStream dos)
 {
     if (dos != null)
     {
         try
         {
             dos.WriteUnsignedInt((uint)this._recordType);
             dos.WriteUnsignedShort((ushort)this._recordLength);
             dos.WriteUnsignedShort((ushort)this._padding);
             this._damageLocation.Marshal(dos);
             dos.WriteFloat((float)this._damageDiameter);
             dos.WriteFloat((float)this._temperature);
             dos.WriteUnsignedByte((byte)this._componentIdentification);
             dos.WriteUnsignedByte((byte)this._componentDamageStatus);
             dos.WriteUnsignedByte((byte)this._componentVisualDamageStatus);
             dos.WriteUnsignedByte((byte)this._componentVisualSmokeColor);
             this._fireEventID.Marshal(dos);
             dos.WriteUnsignedShort((ushort)this._padding2);
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:29,代码来源:DirectedEnergyDamage.cs

示例3: Marshal

 public virtual void Marshal(DataOutputStream dos)
 {
     if (dos != null)
     {
         try
         {
             dos.WriteUnsignedByte((byte)this._recordType);
             dos.WriteUnsignedByte((byte)this._changeIndicator);
             this._entityType.Marshal(dos);
             dos.WriteUnsignedShort((ushort)this._padding);
             dos.WriteUnsignedInt((uint)this._padding1);
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:22,代码来源:EntityTypeVP.cs

示例4: Marshal

 public virtual void Marshal(DataOutputStream dos)
 {
     if (dos != null)
     {
         try
         {
             dos.WriteUnsignedInt((uint)this._recordType);
             dos.WriteUnsignedShort((ushort)this._recordLength);
             dos.WriteUnsignedShort((ushort)this._padding);
             dos.WriteUnsignedByte((byte)this._emitterNumber);
             dos.WriteUnsignedByte((byte)this._beamNumber);
             dos.WriteUnsignedByte((byte)this._stateIndicator);
             dos.WriteUnsignedInt((uint)this._padding2);
             dos.WriteFloat((float)this._azimuthOffset);
             dos.WriteFloat((float)this._azimuthWidth);
             dos.WriteFloat((float)this._azimuthPullRate);
             dos.WriteFloat((float)this._azimuthPullAcceleration);
             dos.WriteFloat((float)this._elevationOffset);
             dos.WriteFloat((float)this._elevationWidth);
             dos.WriteFloat((float)this._elevationPullRate);
             dos.WriteFloat((float)this._elevationPullAcceleration);
             dos.WriteUnsignedInt((uint)this._padding3);
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:33,代码来源:AngleDeception.cs

示例5: Marshal

 public virtual void Marshal(DataOutputStream dos)
 {
     if (dos != null)
     {
         try
         {
             this._expendable.Marshal(dos);
             dos.WriteUnsignedInt((uint)this._station);
             dos.WriteUnsignedShort((ushort)this._standardQuantity);
             dos.WriteUnsignedShort((ushort)this._maximumQuantity);
             dos.WriteUnsignedInt((uint)this._standardQuantityReloadTime);
             dos.WriteUnsignedInt((uint)this._maximumQuantityReloadTime);
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:23,代码来源:ExpendableReload.cs

示例6: Marshal

 public virtual void Marshal(DataOutputStream dos)
 {
     if (dos != null)
     {
         try
         {
             dos.WriteUnsignedInt((uint)this._recordID);
             dos.WriteUnsignedInt((uint)this._recordSetSerialNumber);
             dos.WriteUnsignedShort((ushort)this._recordLength);
             dos.WriteUnsignedShort((ushort)this._recordCount);
             dos.WriteUnsignedShort((ushort)this._recordValues);
             dos.WriteUnsignedByte((byte)this._pad4);
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:23,代码来源:RecordSet.cs

示例7: Marshal

 public virtual void Marshal(DataOutputStream dos)
 {
     if (dos != null)
     {
         try
         {
             dos.WriteUnsignedInt((uint)this._recordType);
             dos.WriteUnsignedShort((ushort)this._recordLength);
             dos.WriteUnsignedByte((byte)this._communcationsNodeType);
             dos.WriteUnsignedByte((byte)this._padding);
             this._communicationsNode.Marshal(dos);
             dos.WriteUnsignedShort((ushort)this._elementID);
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:23,代码来源:IOCommunicationsNode.cs

示例8: Marshal

 public virtual void Marshal(DataOutputStream dos)
 {
     if (dos != null)
     {
         try
         {
             dos.WriteUnsignedByte((byte)this._protocolVersion);
             dos.WriteUnsignedByte((byte)this._exerciseID);
             dos.WriteUnsignedByte((byte)this._pduType);
             dos.WriteUnsignedByte((byte)this._protocolFamily);
             dos.WriteUnsignedInt((uint)this._timestamp);
             dos.WriteUnsignedShort((ushort)this._length);
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:23,代码来源:PduSuperclass.cs

示例9: Marshal

        public virtual void Marshal(DataOutputStream dos)
        {
            if (dos != null)
            {
                try
                {
                    dos.WriteFloat((float)this._erp);
                    dos.WriteFloat((float)this._frequency);
                    dos.WriteFloat((float)this._pgrf);
                    dos.WriteFloat((float)this._pulseWidth);
                    dos.WriteUnsignedInt((uint)this._burstLength);
                    dos.WriteUnsignedByte((byte)this._applicableModes);

                    for (int idx = 0; idx < this._systemSpecificData.Length; idx++)
                    {
                        dos.WriteUnsignedByte(this._systemSpecificData[idx]);
                    }
                }
                catch (Exception e)
                {
            #if DEBUG
                    Trace.WriteLine(e);
                    Trace.Flush();
            #endif
                    this.OnException(e);
                }
            }
        }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:28,代码来源:IFFFundamentalParameterData.cs

示例10: Marshal

 public virtual void Marshal(DataOutputStream dos)
 {
     if (dos != null)
     {
         try
         {
             dos.WriteUnsignedInt((uint)this._recordType);
             dos.WriteUnsignedShort((ushort)this._recordLength);
             dos.WriteUnsignedShort((ushort)this._padding);
             dos.WriteUnsignedByte((byte)this._emitterNumber);
             dos.WriteUnsignedByte((byte)this._beamNumber);
             dos.WriteUnsignedByte((byte)this._stateIndicator);
             dos.WriteUnsignedByte((byte)this._padding2);
             dos.WriteFloat((float)this._falseTargetCount);
             dos.WriteFloat((float)this._walkSpeed);
             dos.WriteFloat((float)this._walkAcceleration);
             dos.WriteFloat((float)this._maximumWalkDistance);
             dos.WriteFloat((float)this._keepTime);
             dos.WriteFloat((float)this._echoSpacing);
             dos.WriteUnsignedInt((uint)this._padding3);
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:31,代码来源:FalseTargetsAttribute.cs

示例11: Marshal

 public virtual void Marshal(DataOutputStream dos)
 {
     if (dos != null)
     {
         try
         {
             dos.WriteUnsignedByte((byte)this._recordType);
             dos.WriteUnsignedByte((byte)this._reasonForSeparation);
             dos.WriteUnsignedByte((byte)this._preEntityIndicator);
             dos.WriteUnsignedByte((byte)this._padding1);
             this._parentEntityID.Marshal(dos);
             dos.WriteUnsignedShort((ushort)this._padding2);
             dos.WriteUnsignedInt((uint)this._stationLocation);
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:24,代码来源:SeparationVP.cs

示例12: Marshal

        public virtual void Marshal(DataOutputStream dos)
        {
            if (dos != null)
            {
                try
                {
                    dos.WriteUnsignedInt((uint)this._recordSets.Count);

                    for (int idx = 0; idx < this._recordSets.Count; idx++)
                    {
                        RecordSpecificationElement aRecordSpecificationElement = (RecordSpecificationElement)this._recordSets[idx];
                        aRecordSpecificationElement.Marshal(dos);
                    }
                }
                catch (Exception e)
                {
            #if DEBUG
                    Trace.WriteLine(e);
                    Trace.Flush();
            #endif
                    this.OnException(e);
                }
            }
        }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:24,代码来源:RecordSpecification.cs

示例13: Marshal

 public virtual void Marshal(DataOutputStream dos)
 {
     if (dos != null)
     {
         try
         {
             dos.WriteUnsignedInt((uint)this._variableDatumID);
             dos.WriteUnsignedInt((uint)this._variableDatumLength);
             dos.WriteUnsignedInt((uint)this._variableDatumBits);
             dos.WriteUnsignedInt((uint)this._padding);
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:21,代码来源:VariableDatum.cs

示例14: Marshal

 public virtual void Marshal(DataOutputStream dos)
 {
     if (dos != null)
     {
         try
         {
             dos.WriteUnsignedByte((byte)this._segmentNumber);
             this._segmentAppearance.Marshal(dos);
             this._location.Marshal(dos);
             this._orientation.Marshal(dos);
             dos.WriteUnsignedShort((ushort)this._segmentLength);
             dos.WriteUnsignedShort((ushort)this._segmentWidth);
             dos.WriteUnsignedShort((ushort)this._segmentHeight);
             dos.WriteUnsignedShort((ushort)this._segmentDepth);
             dos.WriteUnsignedInt((uint)this._pad1);
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:26,代码来源:LinearSegmentParameter.cs

示例15: Marshal

 public virtual void Marshal(DataOutputStream dos)
 {
     if (dos != null)
     {
         try
         {
             dos.WriteFloat((float)this._erp);
             dos.WriteFloat((float)this._frequency);
             dos.WriteFloat((float)this._pgrf);
             dos.WriteFloat((float)this._pulseWidth);
             dos.WriteUnsignedInt((uint)this._burstLength);
             dos.WriteUnsignedByte((byte)this._applicableModes);
             dos.WriteUnsignedShort((ushort)this._pad2);
             dos.WriteUnsignedByte((byte)this._pad3);
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:25,代码来源:FundamentalParameterDataIff.cs


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