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


C# DataInputStream.ReadUnsignedByte方法代码示例

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


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

示例1: Unmarshal

        public virtual void Unmarshal(DataInputStream dis)
        {
            if (dis != null)
            {
                try
                {
                    this._emitterSystemDataLength = dis.ReadUnsignedByte();
                    this._numberOfBeams = dis.ReadUnsignedByte();
                    this._pad2 = dis.ReadUnsignedShort();
                    this._acousticEmitterSystem.Unmarshal(dis);
                    this._emitterLocation.Unmarshal(dis);
                    for (int idx = 0; idx < this.NumberOfBeams; idx++)
                    {
                        AcousticBeamData anX = new AcousticBeamData();
                        anX.Unmarshal(dis);
                        this._beamRecords.Add(anX);
                    };

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

示例2: Unmarshal

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

示例3: Unmarshal

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

示例4: Unmarshal

 public virtual void Unmarshal(DataInputStream dis)
 {
     if (dis != null)
     {
         try
         {
             this._systemType = dis.ReadUnsignedShort();
             this._systemName = dis.ReadUnsignedShort();
             this._systemMode = dis.ReadUnsignedByte();
             this._changeOptions = dis.ReadUnsignedByte();
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:21,代码来源:SystemID.cs

示例5: Unmarshal

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

示例6: Unmarshal

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

示例7: Unmarshal

 public virtual void Unmarshal(DataInputStream dis)
 {
     if (dis != null)
     {
         try
         {
             this._deadReckoningAlgorithm = dis.ReadUnsignedByte();
             for (int idx = 0; idx < this._parameters.Length; idx++)
             {
                 this._parameters[idx] = dis.ReadUnsignedByte();
             }
             this._entityLinearAcceleration.Unmarshal(dis);
             this._entityAngularVelocity.Unmarshal(dis);
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:24,代码来源:DeadReckoningParameters.cs

示例8: Unmarshal

 public virtual void Unmarshal(DataInputStream dis)
 {
     if (dis != null)
     {
         try
         {
             this._recordType = dis.ReadUnsignedInt();
             this._recordLength = dis.ReadUnsignedShort();
             this._padding = dis.ReadUnsignedShort();
             this._targetSpotLocation.Unmarshal(dis);
             this._targetSpotEntityLocation.Unmarshal(dis);
             this._targetSpotVelocity.Unmarshal(dis);
             this._targetSpotAcceleration.Unmarshal(dis);
             this._targetEntityID.Unmarshal(dis);
             this._targetComponentID = dis.ReadUnsignedByte();
             this._SpotShape = dis.ReadUnsignedByte();
             this._BeamSpotXSecSemiMajorAxis = dis.ReadFloat();
             this._BeamSpotCrossSectionSemiMinorAxis = dis.ReadFloat();
             this._BeamSpotCrossSectionOrientAngle = dis.ReadFloat();
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:30,代码来源:DirectedEnergyPrecisionAimpoint.cs

示例9: 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

示例10: Unmarshal

 public virtual void Unmarshal(DataInputStream dis)
 {
     if (dis != null)
     {
         try
         {
             this._systemStatus = dis.ReadUnsignedByte();
             this._alternateParameter4 = dis.ReadUnsignedByte();
             this._informationLayers = dis.ReadUnsignedByte();
             this._modifier = dis.ReadUnsignedByte();
             this._parameter1 = dis.ReadUnsignedShort();
             this._parameter2 = dis.ReadUnsignedShort();
             this._parameter3 = dis.ReadUnsignedShort();
             this._parameter4 = dis.ReadUnsignedShort();
             this._parameter5 = dis.ReadUnsignedShort();
             this._parameter6 = dis.ReadUnsignedShort();
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:27,代码来源:IffFundamentalData.cs

示例11: Unmarshal

 public virtual void Unmarshal(DataInputStream dis)
 {
     if (dis != null)
     {
         try
         {
             this._recordType = dis.ReadUnsignedInt();
             this._recordLength = dis.ReadUnsignedShort();
             this._emitterNumber = dis.ReadUnsignedByte();
             this._beamNumber = dis.ReadUnsignedByte();
             this._stateIndicator = dis.ReadUnsignedByte();
             this._leftAzimuth = dis.ReadFloat();
             this._rightAzimuth = dis.ReadFloat();
             this._lowerElevation = dis.ReadFloat();
             this._upperElevation = dis.ReadFloat();
             this._residualPower = dis.ReadFloat();
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:27,代码来源:BlankingSector.cs

示例12: Unmarshal

        public virtual void Unmarshal(DataInputStream dis)
        {
            if (dis != null)
            {
                try
                {
                    this._beamDataLength = dis.ReadUnsignedByte();
                    this._beamIDNumber = dis.ReadUnsignedByte();
                    this._beamParameterIndex = dis.ReadUnsignedShort();
                    this._fundamentalParameterData.Unmarshal(dis);
                    this._beamFunction = dis.ReadUnsignedByte();
                    this._numberOfTrackJamTargets = dis.ReadUnsignedByte();
                    this._highDensityTrackJam = dis.ReadUnsignedByte();
                    this._pad4 = dis.ReadUnsignedByte();
                    this._jammingModeSequence = dis.ReadUnsignedInt();
                    for (int idx = 0; idx < this.NumberOfTrackJamTargets; idx++)
                    {
                        TrackJamTarget anX = new TrackJamTarget();
                        anX.Unmarshal(dis);
                        this._trackJamTargets.Add(anX);
                    };

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

示例13: Unmarshal

 public virtual void Unmarshal(DataInputStream dis)
 {
     if (dis != null)
     {
         try
         {
             this._beamDirection.Unmarshal(dis);
             this._azimuthBeamwidth = dis.ReadFloat();
             this._elevationBeamwidth = dis.ReadFloat();
             this._referenceSystem = dis.ReadFloat();
             this._padding1 = dis.ReadUnsignedByte();
             this._padding2 = dis.ReadUnsignedShort();
             this._ez = dis.ReadFloat();
             this._ex = dis.ReadFloat();
             this._phase = 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,代码行数:27,代码来源:BeamAntennaPattern.cs

示例14: Unmarshal

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

示例15: Unmarshal

 public virtual void Unmarshal(DataInputStream dis)
 {
     if (dis != null)
     {
         try
         {
             this._recordType = dis.ReadUnsignedByte();
             this._changeIndicator = dis.ReadUnsignedByte();
             this._associationStatus = dis.ReadUnsignedByte();
             this._associationType = dis.ReadUnsignedByte();
             this._entityID.Unmarshal(dis);
             this._owsSttionLocation = dis.ReadUnsignedShort();
             this._physicalConnectionType = dis.ReadUnsignedShort();
             this._groupMemberType = dis.ReadUnsignedByte();
             this._groupNumber = dis.ReadUnsignedShort();
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:26,代码来源:EntityAssociation.cs


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