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


C# DataInputStream.readUshort方法代码示例

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


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

示例1: unmarshal

 public void unmarshal(DataInputStream dis)
 {
     try
     {
         _systemType = dis.readUshort();
         _systemName = dis.readUshort();
         _systemMode = dis.readByte();
         _changeOptions = dis.readByte();
     } // end try
     catch(Exception e)
     {
         Trace.WriteLine(e);
         Trace.Flush();
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:15,代码来源:SystemID.cs

示例2: unmarshal

        public new void unmarshal(DataInputStream dis)
        {
            base.unmarshal(dis);

            try
            {
               _receivingEntityID.unmarshal(dis);
               _repairingEntityID.unmarshal(dis);
               _repair = dis.readUshort();
               _padding2 = dis.readShort();
            } // end try
               catch(Exception e)
            {
              Trace.WriteLine(e);
              Trace.Flush();
            }
        }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:17,代码来源:RepairCompletePdu.cs

示例3: unmarshal

        public void unmarshal(DataInputStream dis)
        {
            try
            {
                _systemDataLength = dis.readByte();
                _numberOfBeams = dis.readByte();
                _emissionsPadding2 = dis.readUshort();
                _emitterSystem.unmarshal(dis);
                _location.unmarshal(dis);
                for(int idx = 0; idx < _numberOfBeams; idx++)
                {
                    ElectronicEmissionBeamData anX = new ElectronicEmissionBeamData();
                    anX.unmarshal(dis);
                    _beamDataRecords.Add(anX);
                };

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

示例4: unmarshal

        public new void unmarshal(DataInputStream dis)
        {
            base.unmarshal(dis);

            try
            {
               _controlType = dis.readByte();
               _communicationsChannelType = dis.readByte();
               _sourceEntityID.unmarshal(dis);
               _sourceCommunicationsDeviceID = dis.readByte();
               _sourceLineID = dis.readByte();
               _transmitPriority = dis.readByte();
               _transmitLineState = dis.readByte();
               _command = dis.readByte();
               _masterEntityID.unmarshal(dis);
               _masterCommunicationsDeviceID = dis.readUshort();
               _intercomParametersLength = dis.readUint();
            for(int idx = 0; idx < _intercomParametersLength; idx++)
            {
               IntercomCommunicationsParameters anX = new IntercomCommunicationsParameters();
            anX.unmarshal(dis);
            _intercomParameters.Add(anX);
            };

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

示例5: unmarshal

        public new void unmarshal(DataInputStream dis)
        {
            base.unmarshal(dis);

            try
            {
                _emittingEntityId.unmarshal(dis);
                _eventID.unmarshal(dis);
                _location.unmarshal(dis);
                _systemID.unmarshal(dis);
                _pad2 = dis.readUshort();
                _fundamentalParameters.unmarshal(dis);
            } // end try
            catch(Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:19,代码来源:IffAtcNavAidsLayer1Pdu.cs

示例6: unmarshal

 public void unmarshal(DataInputStream dis)
 {
     try
     {
        _layerNumber = dis.readByte();
        _layerSpecificInformaiton = dis.readByte();
        _length = dis.readUshort();
     } // end try
        catch(Exception e)
     {
       Trace.WriteLine(e);
       Trace.Flush();
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:14,代码来源:LayerHeader.cs

示例7: unmarshal

        public new void unmarshal(DataInputStream dis)
        {
            base.unmarshal(dis);

            try
            {
               _orginatingEntityID.unmarshal(dis);
               _infraredSignatureRepresentationIndex = dis.readUshort();
               _acousticSignatureRepresentationIndex = dis.readUshort();
               _radarCrossSectionSignatureRepresentationIndex = dis.readUshort();
               _numberOfPropulsionSystems = dis.readUshort();
               _numberOfVectoringNozzleSystems = dis.readUshort();
            for(int idx = 0; idx < _numberOfPropulsionSystems; idx++)
            {
               PropulsionSystemData anX = new PropulsionSystemData();
            anX.unmarshal(dis);
            _propulsionSystemData.Add(anX);
            };

            for(int idx = 0; idx < _numberOfVectoringNozzleSystems; idx++)
            {
               VectoringNozzleSystemData anX = new VectoringNozzleSystemData();
            anX.unmarshal(dis);
            _vectoringSystemData.Add(anX);
            };

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

示例8: unmarshal

 public void unmarshal(DataInputStream dis)
 {
     try
     {
         _segmentNumber = dis.readByte();
         _segmentAppearance.unmarshal(dis);
         _location.unmarshal(dis);
         _orientation.unmarshal(dis);
         _segmentLength = dis.readUshort();
         _segmentWidth = dis.readUshort();
         _segmentHeight = dis.readUshort();
         _segmentDepth = dis.readUshort();
         _pad1 = dis.readUint();
     } // end try
     catch(Exception e)
     {
         Trace.WriteLine(e);
         Trace.Flush();
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:20,代码来源:LinearSegmentParameter.cs

示例9: unmarshal

        public new void unmarshal(DataInputStream dis)
        {
            base.unmarshal(dis);

            try
            {
                _environmentalSimulationApplicationID.unmarshal(dis);
                _fieldNumber = dis.readUshort();
                _pduNumber = dis.readUshort();
                _pduTotal = dis.readUshort();
                _coordinateSystem = dis.readUshort();
                _numberOfGridAxes = dis.readByte();
                _constantGrid = dis.readByte();
                _environmentType.unmarshal(dis);
                _orientation.unmarshal(dis);
                _sampleTime = dis.readLong();
                _totalValues = dis.readUint();
                _vectorDimension = dis.readByte();
                _padding1 = dis.readUshort();
                _padding2 = dis.readByte();
                for(int idx = 0; idx < _numberOfGridAxes; idx++)
                {
                    GridAxisRecord anX = new GridAxisRecord();
                    anX.unmarshal(dis);
                    _gridDataList.Add(anX);
                };

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

示例10: unmarshal

        public new void unmarshal(DataInputStream dis)
        {
            base.unmarshal(dis);

            try
            {
                _realWorldTime.unmarshal(dis);
                _simulationTime.unmarshal(dis);
                _requiredReliabilityService = dis.readByte();
                _pad1 = dis.readUshort();
                _pad2 = dis.readByte();
                _requestID = dis.readUint();
            } // end try
            catch(Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:19,代码来源:StartResumeReliablePdu.cs

示例11: unmarshal

        public new void unmarshal(DataInputStream dis)
        {
            base.unmarshal(dis);

            try
            {
                _designatingEntityID.unmarshal(dis);
                _codeName = dis.readUshort();
                _designatedEntityID.unmarshal(dis);
                _designatorCode = dis.readUshort();
                _designatorPower = dis.readFloat();
                _designatorWavelength = dis.readFloat();
                _designatorSpotWrtDesignated.unmarshal(dis);
                _designatorSpotLocation.unmarshal(dis);
                _deadReckoningAlgorithm = dis.readByte();
                _padding1 = dis.readUshort();
                _padding2 = dis.readByte();
                _entityLinearAcceleration.unmarshal(dis);
            } // end try
            catch(Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:25,代码来源:DesignatorPdu.cs

示例12: unmarshal

        public new void unmarshal(DataInputStream dis)
        {
            base.unmarshal(dis);

            try
            {
                _environementalProcessID.unmarshal(dis);
                _environmentType.unmarshal(dis);
                _modelType = dis.readByte();
                _environmentStatus = dis.readByte();
                _numberOfEnvironmentRecords = dis.readByte();
                _sequenceNumber = dis.readUshort();
                for(int idx = 0; idx < _numberOfEnvironmentRecords; idx++)
                {
                    Environment anX = new Environment();
                    anX.unmarshal(dis);
                    _environmentRecords.Add(anX);
                };

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

示例13: unmarshal

        public new void unmarshal(DataInputStream dis)
        {
            base.unmarshal(dis);

            try
            {
                _numberOfValues = dis.readUshort();
                for(int idx = 0; idx < _numberOfValues; idx++)
                {
                    FourByteChunk anX = new FourByteChunk();
                    anX.unmarshal(dis);
                    _dataValues.Add(anX);
                };

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

示例14: unmarshal

        public new void unmarshal(DataInputStream dis)
        {
            base.unmarshal(dis);

            try
            {
                _entityID.unmarshal(dis);
                _communicationsDeviceID = dis.readUshort();
                _encodingScheme = dis.readUshort();
                _tdlType = dis.readUshort();
                _sampleRate = dis.readUint();
                _dataLength = dis.readUshort();
                _samples = dis.readUshort();
                _data = dis.readByteArray(_dataLength);
            } // end try
            catch(Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:21,代码来源:IntercomSignalPdu.cs

示例15: unmarshal

        public new void unmarshal(DataInputStream dis)
        {
            base.unmarshal(dis);

            try
            {
               _acknowledgeFlag = dis.readUshort();
               _responseFlag = dis.readUshort();
               _requestID = dis.readUint();
            } // end try
               catch(Exception e)
            {
              Trace.WriteLine(e);
              Trace.Flush();
            }
        }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:16,代码来源:AcknowledgeReliablePdu.cs


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