本文整理汇总了C#中DISnet.DataStreamUtilities.DataInputStream类的典型用法代码示例。如果您正苦于以下问题:C# DataInputStream类的具体用法?C# DataInputStream怎么用?C# DataInputStream使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DataInputStream类属于DISnet.DataStreamUtilities命名空间,在下文中一共展示了DataInputStream类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: Unmarshal
public virtual void Unmarshal(DataInputStream dis)
{
if (dis != null)
{
try
{
this._recordType = dis.ReadUnsignedInt();
this._recordLength = dis.ReadUnsignedShort();
this._padding = dis.ReadUnsignedShort();
this._emitterNumber = dis.ReadUnsignedByte();
this._beamNumber = dis.ReadUnsignedByte();
this._stateIndicator = dis.ReadUnsignedByte();
this._padding2 = dis.ReadUnsignedInt();
this._azimuthOffset = dis.ReadFloat();
this._azimuthWidth = dis.ReadFloat();
this._azimuthPullRate = dis.ReadFloat();
this._azimuthPullAcceleration = dis.ReadFloat();
this._elevationOffset = dis.ReadFloat();
this._elevationWidth = dis.ReadFloat();
this._elevationPullRate = dis.ReadFloat();
this._elevationPullAcceleration = 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,代码行数:33,代码来源:AngleDeception.cs
示例2: 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
示例3: unmarshal
public new void unmarshal(DataInputStream dis)
{
base.unmarshal(dis);
try
{
_requiredReliabilityService = dis.readByte();
_pad1 = dis.readUshort();
_pad2 = dis.readByte();
_requestID = dis.readUint();
_timeInterval = dis.readUint();
_numberOfFixedDatumRecords = dis.readUint();
_numberOfVariableDatumRecords = dis.readUint();
for(int idx = 0; idx < _numberOfFixedDatumRecords; idx++)
{
FixedDatum anX = new FixedDatum();
anX.unmarshal(dis);
_fixedDatumRecords.Add(anX);
};
for(int idx = 0; idx < _numberOfVariableDatumRecords; idx++)
{
VariableDatum anX = new VariableDatum();
anX.unmarshal(dis);
_variableDatumRecords.Add(anX);
};
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:34,代码来源:DataQueryReliablePdu.cs
示例4: Unmarshal
public virtual void Unmarshal(DataInputStream dis)
{
if (dis != null)
{
try
{
this._domain = dis.ReadUnsignedByte();
this._objectKind = dis.ReadUnsignedByte();
this._category = dis.ReadUnsignedByte();
this._subcategory = dis.ReadUnsignedByte();
}
catch (Exception e)
{
#if DEBUG
Trace.WriteLine(e);
Trace.Flush();
#endif
this.OnException(e);
}
}
}
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:21,代码来源:ObjectType.cs
示例5: 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
示例6: 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
示例7: unmarshal
public new void unmarshal(DataInputStream dis)
{
base.unmarshal(dis);
try
{
_entityId.unmarshal(dis);
_radioId = dis.readUshort();
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:15,代码来源:RadioCommunicationsFamilyPdu.cs
示例8: unmarshal
public void unmarshal(DataInputStream dis)
{
try
{
_horizontalDeflectionAngle = dis.readFloat();
_verticalDeflectionAngle = dis.readFloat();
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:13,代码来源:VectoringNozzleSystemData.cs
示例9: 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
示例10: unmarshal
public new void unmarshal(DataInputStream dis)
{
base.unmarshal(dis);
try
{
_minefieldID.unmarshal(dis);
_requestingEntityID.unmarshal(dis);
_requestID = dis.readByte();
_numberOfMissingPdus = dis.readByte();
for(int idx = 0; idx < _numberOfMissingPdus; idx++)
{
EightByteChunk anX = new EightByteChunk();
anX.unmarshal(dis);
_missingPduSequenceNumbers.Add(anX);
};
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:24,代码来源:MinefieldResponseNackPdu.cs
示例11: Unmarshal
public virtual void Unmarshal(DataInputStream dis)
{
if (dis != null)
{
try
{
for (int idx = 0; idx < this._otherParameters.Length; idx++)
{
this._otherParameters[idx] = dis.ReadByte();
}
}
catch (Exception e)
{
#if DEBUG
Trace.WriteLine(e);
Trace.Flush();
#endif
this.OnException(e);
}
}
}
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:21,代码来源:TwoByteChunk.cs
示例12: Unmarshal
public virtual void Unmarshal(DataInputStream dis)
{
if (dis != null)
{
try
{
this._domainInitialXi = dis.ReadDouble();
this._domainFinalXi = dis.ReadDouble();
this._domainPointsXi = dis.ReadUnsignedShort();
this._interleafFactor = dis.ReadUnsignedByte();
this._axisType = dis.ReadUnsignedByte();
this._numberOfPointsOnXiAxis = dis.ReadUnsignedShort();
this._initialIndex = dis.ReadUnsignedShort();
}
catch (Exception e)
{
#if DEBUG
Trace.WriteLine(e);
Trace.Flush();
#endif
this.OnException(e);
}
}
}
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:24,代码来源:GridAxis.cs
示例13: Unmarshal
public virtual void Unmarshal(DataInputStream dis)
{
if (dis != null)
{
try
{
this._frequency = dis.ReadFloat();
this._frequencyRange = dis.ReadFloat();
this._effectiveRadiatedPower = dis.ReadFloat();
this._pulseRepetitionFrequency = dis.ReadFloat();
this._pulseWidth = dis.ReadFloat();
this._beamAzimuthCenter = dis.ReadFloat();
this._beamAzimuthSweep = dis.ReadFloat();
this._beamElevationCenter = dis.ReadFloat();
this._beamElevationSweep = dis.ReadFloat();
this._beamSweepSync = dis.ReadFloat();
}
catch (Exception e)
{
#if DEBUG
Trace.WriteLine(e);
Trace.Flush();
#endif
this.OnException(e);
}
}
}
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:27,代码来源:FundamentalParameterData.cs
示例14: 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
示例15: unmarshal
public void unmarshal(DataInputStream dis)
{
try
{
_antennaLocation.unmarshal(dis);
_relativeAntennaLocation.unmarshal(dis);
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:13,代码来源:AntennaLocation.cs
示例16: 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
示例17: 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
示例18: 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
示例19: 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
示例20: 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
注:本文中的DISnet.DataStreamUtilities.DataInputStream类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论