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


C# DataInputStream.readShort方法代码示例

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


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

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

示例2: unmarshal

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

            try
            {
                _requestingEntityID.unmarshal(dis);
                _servicingEntityID.unmarshal(dis);
                _serviceTypeRequested = dis.readByte();
                _numberOfSupplyTypes = dis.readByte();
                _serviceRequestPadding = dis.readShort();
                for(int idx = 0; idx < _numberOfSupplyTypes; idx++)
                {
                    SupplyQuantity anX = new SupplyQuantity();
                    anX.unmarshal(dis);
                    _supplies.Add(anX);
                };

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

示例3: unmarshal

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

示例4: unmarshal

 public void unmarshal(DataInputStream dis)
 {
     try
     {
         _currentShaftRPMs = dis.readShort();
         _orderedShaftRPMs = dis.readShort();
         _shaftRPMRateOfChange = dis.readFloat();
     } // end try
     catch(Exception e)
     {
         Trace.WriteLine(e);
         Trace.Flush();
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:14,代码来源:ShaftRPMs.cs

示例5: unmarshal

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

            try
            {
                _issuingEntityID.unmarshal(dis);
                _collidingEntityID.unmarshal(dis);
                _collisionEventID.unmarshal(dis);
                _pad = dis.readShort();
                _contactVelocity.unmarshal(dis);
                _mass = dis.readFloat();
                _location.unmarshal(dis);
                _collisionResultXX = dis.readFloat();
                _collisionResultXY = dis.readFloat();
                _collisionResultXZ = dis.readFloat();
                _collisionResultYY = dis.readFloat();
                _collisionResultYZ = dis.readFloat();
                _collisionResultZZ = dis.readFloat();
                _unitSurfaceNormal.unmarshal(dis);
                _coefficientOfRestitution = dis.readFloat();
            } // end try
            catch(Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:28,代码来源:CollisionElasticPdu.cs

示例6: unmarshal

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

            try
            {
                _munitionID.unmarshal(dis);
                _eventID.unmarshal(dis);
                _velocity.unmarshal(dis);
                _locationInWorldCoordinates.unmarshal(dis);
                _burstDescriptor.unmarshal(dis);
                _locationInEntityCoordinates.unmarshal(dis);
                _detonationResult = dis.readByte();
                _numberOfArticulationParameters = dis.readByte();
                _pad = dis.readShort();
                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,代码行数:29,代码来源:DetonationPdu.cs

示例7: unmarshal

 public void unmarshal(DataInputStream dis)
 {
     try
     {
         _beamDirection.unmarshal(dis);
         _azimuthBeamwidth = dis.readFloat();
         _referenceSystem = dis.readFloat();
         _padding1 = dis.readShort();
         _padding2 = dis.readByte();
         _ez = dis.readFloat();
         _ex = dis.readFloat();
         _phase = dis.readFloat();
     } // end try
     catch(Exception e)
     {
         Trace.WriteLine(e);
         Trace.Flush();
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:19,代码来源:BeamAntennaPattern.cs

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

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

示例10: unmarshal

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

            try
            {
                _realWorldTime.unmarshal(dis);
                _reason = dis.readByte();
                _frozenBehavior = dis.readByte();
                _padding1 = dis.readShort();
                _requestID = dis.readUint();
            } // end try
            catch(Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:18,代码来源:StopFreezePdu.cs


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