本文整理汇总了C#中DISnet.DataStreamUtilities.DataOutputStream类的典型用法代码示例。如果您正苦于以下问题:C# DataOutputStream类的具体用法?C# DataOutputStream怎么用?C# DataOutputStream使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DataOutputStream类属于DISnet.DataStreamUtilities命名空间,在下文中一共展示了DataOutputStream类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: Marshal
public virtual void Marshal(DataOutputStream dos)
{
if (dos != null)
{
try
{
dos.WriteFloat((float)this._frequency);
dos.WriteFloat((float)this._frequencyRange);
dos.WriteFloat((float)this._effectiveRadiatedPower);
dos.WriteFloat((float)this._pulseRepetitionFrequency);
dos.WriteFloat((float)this._pulseWidth);
dos.WriteFloat((float)this._beamAzimuthCenter);
dos.WriteFloat((float)this._beamAzimuthSweep);
dos.WriteFloat((float)this._beamElevationCenter);
dos.WriteFloat((float)this._beamElevationSweep);
dos.WriteFloat((float)this._beamSweepSync);
}
catch (Exception e)
{
#if DEBUG
Trace.WriteLine(e);
Trace.Flush();
#endif
this.OnException(e);
}
}
}
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:27,代码来源:FundamentalParameterData.cs
示例2: Marshal
public virtual void Marshal(DataOutputStream dos)
{
if (dos != null)
{
try
{
dos.WriteUnsignedInt((uint)this._recordType);
dos.WriteUnsignedShort((ushort)this._recordLength);
dos.WriteUnsignedByte((byte)this._ioStatus);
dos.WriteUnsignedByte((byte)this._ioLinkType);
this._ioEffect.Marshal(dos);
dos.WriteUnsignedByte((byte)this._ioEffectDutyCycle);
dos.WriteUnsignedShort((ushort)this._ioEffectDuration);
dos.WriteUnsignedShort((ushort)this._ioProcess);
dos.WriteUnsignedShort((ushort)this._padding);
}
catch (Exception e)
{
#if DEBUG
Trace.WriteLine(e);
Trace.Flush();
#endif
this.OnException(e);
}
}
}
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:26,代码来源:IOEffect.cs
示例3: marshalAutoLengthSet
///<summary>
///Automatically sets the length of the marshalled data, then calls the marshal method.
///</summary>
public new void marshalAutoLengthSet(DataOutputStream dos)
{
//Set the length prior to marshalling data
this.setLength((ushort)this.getMarshalledSize());
this.marshal(dos);
}
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:9,代码来源:DataQueryReliablePdu.cs
示例4: Marshal
public virtual void Marshal(DataOutputStream dos)
{
if (dos != null)
{
try
{
dos.WriteUnsignedByte((byte)this._recordType);
dos.WriteDouble((double)this._variableParameterFields1);
dos.WriteUnsignedInt((uint)this._variableParameterFields2);
dos.WriteUnsignedShort((ushort)this._variableParameterFields3);
dos.WriteUnsignedByte((byte)this._variableParameterFields4);
}
catch (Exception e)
{
#if DEBUG
Trace.WriteLine(e);
Trace.Flush();
#endif
this.OnException(e);
}
}
}
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:22,代码来源:VariableParameter.cs
示例5: Marshal
public virtual void Marshal(DataOutputStream dos)
{
if (dos != null)
{
try
{
dos.WriteFloat((float)this._x);
dos.WriteFloat((float)this._y);
dos.WriteFloat((float)this._z);
}
catch (Exception e)
{
#if DEBUG
Trace.WriteLine(e);
Trace.Flush();
#endif
this.OnException(e);
}
}
}
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:20,代码来源:AngularVelocityVector.cs
示例6: Marshal
public virtual void Marshal(DataOutputStream dos)
{
if (dos != null)
{
try
{
dos.WriteUnsignedByte((byte)this._associationType);
dos.WriteUnsignedByte((byte)this._padding4);
this._associatedEntityID.Marshal(dos);
this._associatedLocation.Marshal(dos);
}
catch (Exception e)
{
#if DEBUG
Trace.WriteLine(e);
Trace.Flush();
#endif
this.OnException(e);
}
}
}
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:21,代码来源:Association.cs
示例7: marshal
///<summary>
///Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method
///</summary>
public new void marshal(DataOutputStream dos)
{
base.marshal(dos);
try
{
_realWorldTime.marshal(dos);
_simulationTime.marshal(dos);
dos.writeUint((uint)_requestID);
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:18,代码来源:StartResumePdu.cs
示例8: marshal
///<summary>
///Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method
///</summary>
public void marshal(DataOutputStream dos)
{
try
{
dos.writeUshort((ushort)_parameterIndex);
dos.writeShort((short)_parameterValue);
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:16,代码来源:ApaData.cs
示例9: Marshal
public virtual void Marshal(DataOutputStream dos)
{
if (dos != null)
{
try
{
dos.WriteByte((byte)this._order);
}
catch (Exception e)
{
#if DEBUG
Trace.WriteLine(e);
Trace.Flush();
#endif
this.OnException(e);
}
}
}
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:18,代码来源:SphericalHarmonicAntennaPattern.cs
示例10: marshal
///<summary>
///Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method
///</summary>
public void marshal(DataOutputStream dos)
{
try
{
dos.writeFloat((float)_horizontalDeflectionAngle);
dos.writeFloat((float)_verticalDeflectionAngle);
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:16,代码来源:VectoringNozzleSystemData.cs
示例11: marshal
///<summary>
///Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method
///</summary>
public new void marshal(DataOutputStream dos)
{
base.marshal(dos);
try
{
_orginatingEntityID.marshal(dos);
dos.writeUshort((ushort)_infraredSignatureRepresentationIndex);
dos.writeUshort((ushort)_acousticSignatureRepresentationIndex);
dos.writeUshort((ushort)_radarCrossSectionSignatureRepresentationIndex);
dos.writeUshort((ushort)_propulsionSystemData.Count);
dos.writeUshort((ushort)_vectoringSystemData.Count);
for(int idx = 0; idx < _propulsionSystemData.Count; idx++)
{
PropulsionSystemData aPropulsionSystemData = (PropulsionSystemData)_propulsionSystemData[idx];
aPropulsionSystemData.marshal(dos);
} // end of list marshalling
for(int idx = 0; idx < _vectoringSystemData.Count; idx++)
{
VectoringNozzleSystemData aVectoringNozzleSystemData = (VectoringNozzleSystemData)_vectoringSystemData[idx];
aVectoringNozzleSystemData.marshal(dos);
} // end of list marshalling
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:34,代码来源:SeesPdu.cs
示例12: Marshal
public virtual void Marshal(DataOutputStream dos)
{
if (dos != null)
{
try
{
for (int idx = 0; idx < this._otherParameters.Length; idx++)
{
dos.WriteByte(this._otherParameters[idx]);
}
}
catch (Exception e)
{
#if DEBUG
Trace.WriteLine(e);
Trace.Flush();
#endif
this.OnException(e);
}
}
}
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:22,代码来源:TwoByteChunk.cs
示例13: marshal
///<summary>
///Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method
///</summary>
public new void marshal(DataOutputStream dos)
{
base.marshal(dos);
try
{
_minefieldID.marshal(dos);
_requestingEntityID.marshal(dos);
dos.writeByte((byte)_requestID);
dos.writeByte((byte)_missingPduSequenceNumbers.Count);
for(int idx = 0; idx < _missingPduSequenceNumbers.Count; idx++)
{
EightByteChunk aEightByteChunk = (EightByteChunk)_missingPduSequenceNumbers[idx];
aEightByteChunk.marshal(dos);
} // end of list marshalling
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:26,代码来源:MinefieldResponseNackPdu.cs
示例14: Marshal
public virtual void Marshal(DataOutputStream dos)
{
if (dos != null)
{
try
{
dos.WriteDouble((double)this._domainInitialXi);
dos.WriteDouble((double)this._domainFinalXi);
dos.WriteUnsignedShort((ushort)this._domainPointsXi);
dos.WriteUnsignedByte((byte)this._interleafFactor);
dos.WriteUnsignedByte((byte)this._axisType);
dos.WriteUnsignedShort((ushort)this._numberOfPointsOnXiAxis);
dos.WriteUnsignedShort((ushort)this._initialIndex);
}
catch (Exception e)
{
#if DEBUG
Trace.WriteLine(e);
Trace.Flush();
#endif
this.OnException(e);
}
}
}
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:24,代码来源:GridAxis.cs
示例15: marshal
///<summary>
///Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method
///</summary>
public new void marshal(DataOutputStream dos)
{
base.marshal(dos);
try
{
dos.writeUint((uint)_requestID);
dos.writeByte((byte)_requiredReliabilityService);
dos.writeUshort((ushort)_pad1);
dos.writeByte((byte)_pad2);
dos.writeUshort((ushort)_eventType);
dos.writeUint((uint)_time);
dos.writeUint((uint)_recordIDs.Count);
for(int idx = 0; idx < _recordIDs.Count; idx++)
{
FourByteChunk aFourByteChunk = (FourByteChunk)_recordIDs[idx];
aFourByteChunk.marshal(dos);
} // end of list marshalling
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:29,代码来源:RecordQueryReliablePdu.cs
示例16: Marshal
public virtual void Marshal(DataOutputStream dos)
{
if (dos != null)
{
try
{
dos.WriteUnsignedByte((byte)this._segmentNumber);
dos.WriteUnsignedByte((byte)this._segmentModification);
dos.WriteUnsignedShort((ushort)this._generalSegmentAppearance);
dos.WriteUnsignedShort((ushort)this._specificSegmentAppearance);
this._segmentLocation.Marshal(dos);
this._segmentOrientation.Marshal(dos);
dos.WriteUnsignedShort((ushort)this._segmentLength);
dos.WriteUnsignedShort((ushort)this._segmentWidth);
dos.WriteUnsignedShort((ushort)this._segmentHeight);
dos.WriteUnsignedShort((ushort)this._segmentDepth);
}
catch (Exception e)
{
#if DEBUG
Trace.WriteLine(e);
Trace.Flush();
#endif
this.OnException(e);
}
}
}
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:27,代码来源:LinearSegmentParameter.cs
示例17: marshal
///<summary>
///Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method
///</summary>
public new void marshal(DataOutputStream dos)
{
base.marshal(dos);
try
{
_receivingEntityID.marshal(dos);
_repairingEntityID.marshal(dos);
dos.writeUshort((ushort)_repair);
dos.writeShort((short)_padding2);
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:19,代码来源:RepairCompletePdu.cs
示例18: marshal
///<summary>
///Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method
///</summary>
public new void marshal(DataOutputStream dos)
{
base.marshal(dos);
try
{
dos.writeByte((byte)_controlType);
dos.writeByte((byte)_communicationsChannelType);
_sourceEntityID.marshal(dos);
dos.writeByte((byte)_sourceCommunicationsDeviceID);
dos.writeByte((byte)_sourceLineID);
dos.writeByte((byte)_transmitPriority);
dos.writeByte((byte)_transmitLineState);
dos.writeByte((byte)_command);
_masterEntityID.marshal(dos);
dos.writeUshort((ushort)_masterCommunicationsDeviceID);
dos.writeUint((uint)_intercomParameters.Count);
for(int idx = 0; idx < _intercomParameters.Count; idx++)
{
IntercomCommunicationsParameters aIntercomCommunicationsParameters = (IntercomCommunicationsParameters)_intercomParameters[idx];
aIntercomCommunicationsParameters.marshal(dos);
} // end of list marshalling
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:33,代码来源:IntercomControlPdu.cs
示例19: marshal
///<summary>
///Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method
///</summary>
public new void marshal(DataOutputStream dos)
{
base.marshal(dos);
try
{
_entityId.marshal(dos);
dos.writeUshort((ushort)_radioId);
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:17,代码来源:RadioCommunicationsFamilyPdu.cs
示例20: marshal
///<summary>
///Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method
///</summary>
public void marshal(DataOutputStream dos)
{
try
{
dos.writeUshort((ushort)_acousticName);
dos.writeByte((byte)_function);
dos.writeByte((byte)_acousticIdNumber);
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:17,代码来源:AcousticEmitter.cs
注:本文中的DISnet.DataStreamUtilities.DataOutputStream类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论