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


C# DataInputStream.readByte方法代码示例

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


在下文中一共展示了DataInputStream.readByte方法的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
            {
               _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

示例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
            {
               _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
            {
               _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

示例6: unmarshal

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

            try
            {
               _issuingEntityID.unmarshal(dis);
               _collidingEntityID.unmarshal(dis);
               _eventID.unmarshal(dis);
               _collisionType = dis.readByte();
               _pad = dis.readByte();
               _velocity.unmarshal(dis);
               _mass = dis.readFloat();
               _location.unmarshal(dis);
            } // end try
               catch(Exception e)
            {
              Trace.WriteLine(e);
              Trace.Flush();
            }
        }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:21,代码来源:CollisionPdu.cs

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

示例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
            {
                _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

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

示例11: unmarshal

 public void unmarshal(DataInputStream dis)
 {
     try
     {
        _environmentType = dis.readUint();
        _length = dis.readByte();
        _index = dis.readByte();
        _padding1 = dis.readByte();
        _geometry = dis.readByte();
        _padding2 = dis.readByte();
     } // end try
        catch(Exception e)
     {
       Trace.WriteLine(e);
       Trace.Flush();
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:17,代码来源:Environment.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
            {
               _entityID.unmarshal(dis);
               _padding1 = dis.readByte();
               _numberOfArticulationParameters = dis.readByte();
               _entityLinearVelocity.unmarshal(dis);
               _entityLocation.unmarshal(dis);
               _entityOrientation.unmarshal(dis);
               _entityAppearance = 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,代码行数:27,代码来源:EntityStateUpdatePdu.cs

示例14: unmarshal

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

            try
            {
                _groupEntityID.unmarshal(dis);
                _groupedEntityCategory = dis.readByte();
                _numberOfGroupedEntities = dis.readByte();
                _pad2 = dis.readUint();
                _latitude = dis.readDouble();
                _longitude = dis.readDouble();
                for(int idx = 0; idx < _numberOfGroupedEntities; idx++)
                {
                    VariableDatum anX = new VariableDatum();
                    anX.unmarshal(dis);
                    _groupedEntityDescriptions.Add(anX);
                };

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

示例15: unmarshal

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

            try
            {
                _minefieldID.unmarshal(dis);
                _minefieldSequence = dis.readUshort();
                _forceID = dis.readByte();
                _numberOfPerimeterPoints = dis.readByte();
                _minefieldType.unmarshal(dis);
                _numberOfMineTypes = dis.readUshort();
                _minefieldLocation.unmarshal(dis);
                _minefieldOrientation.unmarshal(dis);
                _appearance = dis.readUshort();
                _protocolMode = dis.readUshort();
                for(int idx = 0; idx < _numberOfPerimeterPoints; idx++)
                {
                    Point anX = new Point();
                    anX.unmarshal(dis);
                    _perimeterPoints.Add(anX);
                };

                for(int idx = 0; idx < _numberOfMineTypes; idx++)
                {
                    EntityType anX = new EntityType();
                    anX.unmarshal(dis);
                    _mineType.Add(anX);
                };

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


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