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


C# DataInputStream.readUint方法代码示例

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


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

示例1: unmarshal

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

            try
            {
               _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,代码行数:17,代码来源:CreateEntityReliablePdu.cs

示例2: unmarshal

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

            try
            {
               _requestID = dis.readUint();
               _requiredReliabilityService = dis.readByte();
               _pad1 = dis.readUshort();
               _pad2 = dis.readByte();
               _eventType = dis.readUshort();
               _time = dis.readUint();
               _numberOfRecords = dis.readUint();
            for(int idx = 0; idx < _numberOfRecords; idx++)
            {
               FourByteChunk anX = new FourByteChunk();
            anX.unmarshal(dis);
            _recordIDs.Add(anX);
            };

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

示例3: unmarshal

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

            try
            {
                _requestID = dis.readUint();
                _padding1 = dis.readUint();
                _numberOfFixedDatumRecords = dis.readUint();
                _numberOfVariableDatumRecords = dis.readUint();
                for(int idx = 0; idx < _numberOfFixedDatumRecords; idx++)
                {
                    FixedDatum anX = new FixedDatum();
                    anX.unmarshal(dis);
                    _fixedDatums.Add(anX);
                };

                for(int idx = 0; idx < _numberOfVariableDatumRecords; idx++)
                {
                    VariableDatum anX = new VariableDatum();
                    anX.unmarshal(dis);
                    _variableDatums.Add(anX);
                };

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

示例4: unmarshal

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

            try
            {
               _objectID.unmarshal(dis);
               _referencedObjectID.unmarshal(dis);
               _updateNumber = dis.readUshort();
               _forceID = dis.readByte();
               _modifications = dis.readByte();
               _objectType.unmarshal(dis);
               _objectLocation.unmarshal(dis);
               _objectOrientation.unmarshal(dis);
               _objectAppearance = dis.readDouble();
               _requesterID.unmarshal(dis);
               _receivingID.unmarshal(dis);
               _pad2 = dis.readUint();
            } // end try
               catch(Exception e)
            {
              Trace.WriteLine(e);
              Trace.Flush();
            }
        }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:25,代码来源:PointObjectStatePdu.cs

示例5: unmarshal

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

            try
            {
               _entityID.unmarshal(dis);
               _forceId = dis.readByte();
               _numberOfArticulationParameters = dis.readByte();
               _entityType.unmarshal(dis);
               _alternativeEntityType.unmarshal(dis);
               _entityLinearVelocity.unmarshal(dis);
               _entityLocation.unmarshal(dis);
               _entityOrientation.unmarshal(dis);
               _entityAppearance = dis.readUint();
               _deadReckoningParameters.unmarshal(dis);
               _marking.unmarshal(dis);
               _capabilities = dis.readUint();
            for(int idx = 0; idx < _numberOfArticulationParameters; idx++)
            {
               ArticulationParameter anX = new ArticulationParameter();
            anX.unmarshal(dis);
            _articulationParameters.Add(anX);
            };

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

示例6: unmarshal

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

            try
            {
                _minefieldID.unmarshal(dis);
                _requestingEntityID.unmarshal(dis);
                _minefieldSequenceNumbeer = dis.readUshort();
                _requestID = dis.readByte();
                _pduSequenceNumber = dis.readByte();
                _numberOfPdus = dis.readByte();
                _numberOfMinesInThisPdu = dis.readByte();
                _numberOfSensorTypes = dis.readByte();
                _pad2 = dis.readByte();
                _dataFilter = dis.readUint();
                _mineType.unmarshal(dis);
                for(int idx = 0; idx < _numberOfSensorTypes; idx++)
                {
                    TwoByteChunk anX = new TwoByteChunk();
                    anX.unmarshal(dis);
                    _sensorTypes.Add(anX);
                };

                _pad3 = dis.readByte();
                for(int idx = 0; idx < _numberOfMinesInThisPdu; idx++)
                {
                    Vector3Float anX = new Vector3Float();
                    anX.unmarshal(dis);
                    _mineLocation.Add(anX);
                };

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

示例7: unmarshal

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

            try
            {
                _minefieldID.unmarshal(dis);
                _requestingEntityID.unmarshal(dis);
                _requestID = dis.readByte();
                _numberOfPerimeterPoints = dis.readByte();
                _pad2 = dis.readByte();
                _numberOfSensorTypes = dis.readByte();
                _dataFilter = dis.readUint();
                _requestedMineType.unmarshal(dis);
                for(int idx = 0; idx < _numberOfPerimeterPoints; idx++)
                {
                    Point anX = new Point();
                    anX.unmarshal(dis);
                    _requestedPerimeterPoints.Add(anX);
                };

                for(int idx = 0; idx < _numberOfSensorTypes; idx++)
                {
                    TwoByteChunk anX = new TwoByteChunk();
                    anX.unmarshal(dis);
                    _sensorTypes.Add(anX);
                };

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

示例8: unmarshal

 public void unmarshal(DataInputStream dis)
 {
     try
     {
         _parameterTypeDesignator = dis.readByte();
         _changeIndicator = dis.readByte();
         _partAttachedTo = dis.readUshort();
         _parameterType = dis.readUint();
         _parameterValue = dis.readDouble();
     } // end try
     catch(Exception e)
     {
         Trace.WriteLine(e);
         Trace.Flush();
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:16,代码来源:ArticulationParameter.cs

示例9: unmarshal

        public void unmarshal(DataInputStream dis)
        {
            try
            {
               _beamDataLength = dis.readByte();
               _beamIDNumber = dis.readByte();
               _beamParameterIndex = dis.readUshort();
               _fundamentalParameterData.unmarshal(dis);
               _beamFunction = dis.readByte();
               _numberOfTrackJamTargets = dis.readByte();
               _highDensityTrackJam = dis.readByte();
               _pad4 = dis.readByte();
               _jammingModeSequence = dis.readUint();
            for(int idx = 0; idx < _numberOfTrackJamTargets; idx++)
            {
               TrackJamTarget anX = new TrackJamTarget();
            anX.unmarshal(dis);
            _trackJamTargets.Add(anX);
            };

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

示例10: unmarshal

 public void unmarshal(DataInputStream dis)
 {
     try
     {
        _fixedDatumID = dis.readUint();
        _fixedDatumValue = dis.readUint();
     } // end try
        catch(Exception e)
     {
       Trace.WriteLine(e);
       Trace.Flush();
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:13,代码来源:FixedDatum.cs

示例11: unmarshal

        public void unmarshal(DataInputStream dis)
        {
            try
            {
                _variableDatumID = dis.readUint();
                _variableDatumLength = dis.readUint();
            int variableCount = (int)(_variableDatumLength / 64) + (_variableDatumLength % 64 > 0 ? 1 : 0);  //Post processed
                for(int idx = 0; idx < variableCount; idx++)
                {
                    EightByteChunk anX = new EightByteChunk();
                    anX.unmarshal(dis);
                    _variableDatums.Add(anX);
                };

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

示例12: unmarshal

 public void unmarshal(DataInputStream dis)
 {
     try
     {
         _protocolVersion = dis.readByte();
         _exerciseID = dis.readByte();
         _pduType = dis.readByte();
         _protocolFamily = dis.readByte();
         _timestamp = dis.readUint();
         _length = dis.readUshort();
         _padding = dis.readShort();
     } // end try
     catch(Exception e)
     {
         Trace.WriteLine(e);
         Trace.Flush();
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:18,代码来源:Pdu.cs

示例13: unmarshal

 public void unmarshal(DataInputStream dis)
 {
     try
     {
        _erp = dis.readFloat();
        _frequency = dis.readFloat();
        _pgrf = dis.readFloat();
        _pulseWidth = dis.readFloat();
        _burstLength = dis.readUint();
        _applicableModes = dis.readByte();
        _pad2 = dis.readUshort();
        _pad3 = dis.readByte();
     } // end try
        catch(Exception e)
     {
       Trace.WriteLine(e);
       Trace.Flush();
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:19,代码来源:FundamentalParameterDataIff.cs

示例14: unmarshal

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

            try
            {
                _encodingScheme = dis.readUshort();
                _tdlType = dis.readUshort();
                _sampleRate = dis.readUint();
                _dataLength = dis.readShort();
                _samples = dis.readShort();
                _data = dis.readByteArray((_dataLength / 8) + (_dataLength % 8 > 0 ? 1 : 0));  //09062009 Post processed. Needed to convert from bits to bytes
            } // end try
            catch(Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:19,代码来源:SignalPdu.cs

示例15: unmarshal

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

            try
            {
                _orginatingEntityID.unmarshal(dis);
                _recevingEntityID.unmarshal(dis);
                _requestID = dis.readUint();
                _requiredReliabilityService = dis.readByte();
                _tranferType = dis.readByte();
                _transferEntityID.unmarshal(dis);
                _numberOfRecordSets = dis.readByte();
                for(int idx = 0; idx < _numberOfRecordSets; idx++)
                {
                    RecordSet anX = new RecordSet();
                    anX.unmarshal(dis);
                    _recordSets.Add(anX);
                };

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


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