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


C# DataInputStream.ReadUnsignedInt方法代码示例

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


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

示例1: Unmarshal

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

示例2: Unmarshal

 public virtual void Unmarshal(DataInputStream dis)
 {
     if (dis != null)
     {
         try
         {
             this._recordType = dis.ReadUnsignedInt();
             this._recordLength = dis.ReadUnsignedShort();
             this._padding = dis.ReadUnsignedShort();
             this._damageLocation.Unmarshal(dis);
             this._damageDiameter = dis.ReadFloat();
             this._temperature = dis.ReadFloat();
             this._componentIdentification = dis.ReadUnsignedByte();
             this._componentDamageStatus = dis.ReadUnsignedByte();
             this._componentVisualDamageStatus = dis.ReadUnsignedByte();
             this._componentVisualSmokeColor = dis.ReadUnsignedByte();
             this._fireEventID.Unmarshal(dis);
             this._padding2 = dis.ReadUnsignedShort();
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:29,代码来源:DirectedEnergyDamage.cs

示例3: Unmarshal

 public virtual void Unmarshal(DataInputStream dis)
 {
     if (dis != null)
     {
         try
         {
             this._recordType = dis.ReadUnsignedByte();
             this._changeIndicator = dis.ReadUnsignedByte();
             this._entityType.Unmarshal(dis);
             this._padding = dis.ReadUnsignedShort();
             this._padding1 = dis.ReadUnsignedInt();
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:22,代码来源:EntityTypeVP.cs

示例4: Unmarshal

 public virtual void Unmarshal(DataInputStream dis)
 {
     if (dis != null)
     {
         try
         {
             this._recordType = dis.ReadUnsignedInt();
             this._recordLength = dis.ReadUnsignedShort();
             this._padding = dis.ReadUnsignedShort();
             this._emitterNumber = dis.ReadUnsignedByte();
             this._beamNumber = dis.ReadUnsignedByte();
             this._stateIndicator = dis.ReadUnsignedByte();
             this._padding2 = dis.ReadUnsignedInt();
             this._azimuthOffset = dis.ReadFloat();
             this._azimuthWidth = dis.ReadFloat();
             this._azimuthPullRate = dis.ReadFloat();
             this._azimuthPullAcceleration = dis.ReadFloat();
             this._elevationOffset = dis.ReadFloat();
             this._elevationWidth = dis.ReadFloat();
             this._elevationPullRate = dis.ReadFloat();
             this._elevationPullAcceleration = dis.ReadFloat();
             this._padding3 = dis.ReadUnsignedInt();
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:33,代码来源:AngleDeception.cs

示例5: Unmarshal

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

示例6: Unmarshal

 public virtual void Unmarshal(DataInputStream dis)
 {
     if (dis != null)
     {
         try
         {
             this._recordID = dis.ReadUnsignedInt();
             this._recordSetSerialNumber = dis.ReadUnsignedInt();
             this._recordLength = dis.ReadUnsignedShort();
             this._recordCount = dis.ReadUnsignedShort();
             this._recordValues = dis.ReadUnsignedShort();
             this._pad4 = dis.ReadUnsignedByte();
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:23,代码来源:RecordSet.cs

示例7: Unmarshal

 public virtual void Unmarshal(DataInputStream dis)
 {
     if (dis != null)
     {
         try
         {
             this._recordType = dis.ReadUnsignedInt();
             this._recordLength = dis.ReadUnsignedShort();
             this._communcationsNodeType = dis.ReadUnsignedByte();
             this._padding = dis.ReadUnsignedByte();
             this._communicationsNode.Unmarshal(dis);
             this._elementID = dis.ReadUnsignedShort();
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:23,代码来源:IOCommunicationsNode.cs

示例8: Unmarshal

 public virtual void Unmarshal(DataInputStream dis)
 {
     if (dis != null)
     {
         try
         {
             this._protocolVersion = dis.ReadUnsignedByte();
             this._exerciseID = dis.ReadUnsignedByte();
             this._pduType = dis.ReadUnsignedByte();
             this._protocolFamily = dis.ReadUnsignedByte();
             this._timestamp = dis.ReadUnsignedInt();
             this._length = dis.ReadUnsignedShort();
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:23,代码来源:PduSuperclass.cs

示例9: Unmarshal

 public virtual void Unmarshal(DataInputStream dis)
 {
     if (dis != null)
     {
         try
         {
             this._erp = dis.ReadFloat();
             this._frequency = dis.ReadFloat();
             this._pgrf = dis.ReadFloat();
             this._pulseWidth = dis.ReadFloat();
             this._burstLength = dis.ReadUnsignedInt();
             this._applicableModes = dis.ReadUnsignedByte();
             for (int idx = 0; idx < this._systemSpecificData.Length; idx++)
             {
                 this._systemSpecificData[idx] = dis.ReadUnsignedByte();
             }
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:27,代码来源:IFFFundamentalParameterData.cs

示例10: Unmarshal

 public virtual void Unmarshal(DataInputStream dis)
 {
     if (dis != null)
     {
         try
         {
             this._recordType = dis.ReadUnsignedInt();
             this._recordLength = dis.ReadUnsignedShort();
             this._padding = dis.ReadUnsignedShort();
             this._emitterNumber = dis.ReadUnsignedByte();
             this._beamNumber = dis.ReadUnsignedByte();
             this._stateIndicator = dis.ReadUnsignedByte();
             this._padding2 = dis.ReadUnsignedByte();
             this._falseTargetCount = dis.ReadFloat();
             this._walkSpeed = dis.ReadFloat();
             this._walkAcceleration = dis.ReadFloat();
             this._maximumWalkDistance = dis.ReadFloat();
             this._keepTime = dis.ReadFloat();
             this._echoSpacing = dis.ReadFloat();
             this._padding3 = dis.ReadUnsignedInt();
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:31,代码来源:FalseTargetsAttribute.cs

示例11: Unmarshal

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

示例12: Unmarshal

        public virtual void Unmarshal(DataInputStream dis)
        {
            if (dis != null)
            {
                try
                {
                    this._numberOfRecordSets = dis.ReadUnsignedInt();
                    for (int idx = 0; idx < this.NumberOfRecordSets; idx++)
                    {
                        RecordSpecificationElement anX = new RecordSpecificationElement();
                        anX.Unmarshal(dis);
                        this._recordSets.Add(anX);
                    };

                }
                catch (Exception e)
                {
            #if DEBUG
                    Trace.WriteLine(e);
                    Trace.Flush();
            #endif
                    this.OnException(e);
                }
            }
        }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:25,代码来源:RecordSpecification.cs

示例13: Unmarshal

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

示例14: Unmarshal

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

示例15: Unmarshal

 public virtual void Unmarshal(DataInputStream dis)
 {
     if (dis != null)
     {
         try
         {
             this._erp = dis.ReadFloat();
             this._frequency = dis.ReadFloat();
             this._pgrf = dis.ReadFloat();
             this._pulseWidth = dis.ReadFloat();
             this._burstLength = dis.ReadUnsignedInt();
             this._applicableModes = dis.ReadUnsignedByte();
             this._pad2 = dis.ReadUnsignedShort();
             this._pad3 = dis.ReadUnsignedByte();
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:25,代码来源:FundamentalParameterDataIff.cs


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