本文整理汇总了C#中DISnet.DataStreamUtilities.DataOutputStream.WriteUnsignedByte方法的典型用法代码示例。如果您正苦于以下问题:C# DataOutputStream.WriteUnsignedByte方法的具体用法?C# DataOutputStream.WriteUnsignedByte怎么用?C# DataOutputStream.WriteUnsignedByte使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DISnet.DataStreamUtilities.DataOutputStream
的用法示例。
在下文中一共展示了DataOutputStream.WriteUnsignedByte方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Marshal
public virtual void Marshal(DataOutputStream dos)
{
if (dos != null)
{
try
{
dos.WriteUnsignedByte((byte)this._aggregateKind);
dos.WriteUnsignedByte((byte)this._domain);
dos.WriteUnsignedShort((ushort)this._country);
dos.WriteUnsignedByte((byte)this._category);
dos.WriteUnsignedByte((byte)this._subcategory);
dos.WriteUnsignedByte((byte)this._specific);
dos.WriteUnsignedByte((byte)this._extra);
}
catch (Exception e)
{
#if DEBUG
Trace.WriteLine(e);
Trace.Flush();
#endif
this.OnException(e);
}
}
}
示例2: 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);
}
}
}
示例3: 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);
}
}
}
示例4: Marshal
public virtual void Marshal(DataOutputStream dos)
{
if (dos != null)
{
try
{
dos.WriteUnsignedShort((ushort)this._systemType);
dos.WriteUnsignedShort((ushort)this._systemName);
dos.WriteUnsignedByte((byte)this._systemMode);
dos.WriteUnsignedByte((byte)this._changeOptions);
}
catch (Exception e)
{
#if DEBUG
Trace.WriteLine(e);
Trace.Flush();
#endif
this.OnException(e);
}
}
}
示例5: 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);
}
}
}
示例6: Marshal
public virtual void Marshal(DataOutputStream dos)
{
if (dos != null)
{
try
{
dos.WriteUnsignedInt((uint)this._standardQuantity);
dos.WriteUnsignedInt((uint)this._maximumQuantity);
dos.WriteUnsignedInt((uint)this._standardQuantityReloadTime);
dos.WriteUnsignedInt((uint)this._maximumQuantityReloadTime);
dos.WriteUnsignedByte((byte)this._fuelMeasurmentUnits);
dos.WriteUnsignedByte((byte)this._fuelLocation);
dos.WriteUnsignedByte((byte)this._padding);
}
catch (Exception e)
{
#if DEBUG
Trace.WriteLine(e);
Trace.Flush();
#endif
this.OnException(e);
}
}
}
示例7: Marshal
public virtual void Marshal(DataOutputStream dos)
{
if (dos != null)
{
try
{
dos.WriteUnsignedByte((byte)this._deadReckoningAlgorithm);
for (int idx = 0; idx < this._parameters.Length; idx++)
{
dos.WriteUnsignedByte(this._parameters[idx]);
}
this._entityLinearAcceleration.Marshal(dos);
this._entityAngularVelocity.Marshal(dos);
}
catch (Exception e)
{
#if DEBUG
Trace.WriteLine(e);
Trace.Flush();
#endif
this.OnException(e);
}
}
}
示例8: Marshal
public virtual void Marshal(DataOutputStream dos)
{
if (dos != null)
{
try
{
dos.WriteUnsignedInt((uint)this._recordType);
dos.WriteUnsignedShort((ushort)this._recordLength);
dos.WriteUnsignedShort((ushort)this._padding);
this._targetSpotLocation.Marshal(dos);
this._targetSpotEntityLocation.Marshal(dos);
this._targetSpotVelocity.Marshal(dos);
this._targetSpotAcceleration.Marshal(dos);
this._targetEntityID.Marshal(dos);
dos.WriteUnsignedByte((byte)this._targetComponentID);
dos.WriteUnsignedByte((byte)this._SpotShape);
dos.WriteFloat((float)this._BeamSpotXSecSemiMajorAxis);
dos.WriteFloat((float)this._BeamSpotCrossSectionSemiMinorAxis);
dos.WriteFloat((float)this._BeamSpotCrossSectionOrientAngle);
}
catch (Exception e)
{
#if DEBUG
Trace.WriteLine(e);
Trace.Flush();
#endif
this.OnException(e);
}
}
}
示例9: Marshal
public virtual void Marshal(DataOutputStream dos)
{
if (dos != null)
{
try
{
dos.WriteUnsignedByte((byte)this._protocolVersion);
dos.WriteUnsignedByte((byte)this._exerciseID);
dos.WriteUnsignedByte((byte)this._pduType);
dos.WriteUnsignedByte((byte)this._protocolFamily);
dos.WriteUnsignedInt((uint)this._timestamp);
dos.WriteUnsignedShort((ushort)this._length);
}
catch (Exception e)
{
#if DEBUG
Trace.WriteLine(e);
Trace.Flush();
#endif
this.OnException(e);
}
}
}
示例10: Marshal
public virtual void Marshal(DataOutputStream dos)
{
if (dos != null)
{
try
{
dos.WriteUnsignedByte((byte)this._systemStatus);
dos.WriteUnsignedByte((byte)this._alternateParameter4);
dos.WriteUnsignedByte((byte)this._informationLayers);
dos.WriteUnsignedByte((byte)this._modifier);
dos.WriteUnsignedShort((ushort)this._parameter1);
dos.WriteUnsignedShort((ushort)this._parameter2);
dos.WriteUnsignedShort((ushort)this._parameter3);
dos.WriteUnsignedShort((ushort)this._parameter4);
dos.WriteUnsignedShort((ushort)this._parameter5);
dos.WriteUnsignedShort((ushort)this._parameter6);
}
catch (Exception e)
{
#if DEBUG
Trace.WriteLine(e);
Trace.Flush();
#endif
this.OnException(e);
}
}
}
示例11: 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._emitterNumber);
dos.WriteUnsignedByte((byte)this._beamNumber);
dos.WriteUnsignedByte((byte)this._stateIndicator);
dos.WriteFloat((float)this._leftAzimuth);
dos.WriteFloat((float)this._rightAzimuth);
dos.WriteFloat((float)this._lowerElevation);
dos.WriteFloat((float)this._upperElevation);
dos.WriteFloat((float)this._residualPower);
}
catch (Exception e)
{
#if DEBUG
Trace.WriteLine(e);
Trace.Flush();
#endif
this.OnException(e);
}
}
}
示例12: Marshal
public virtual void Marshal(DataOutputStream dos)
{
if (dos != null)
{
try
{
dos.WriteUnsignedByte((byte)this._beamDataLength);
dos.WriteUnsignedByte((byte)this._beamIDNumber);
dos.WriteUnsignedShort((ushort)this._beamParameterIndex);
this._fundamentalParameterData.Marshal(dos);
dos.WriteUnsignedByte((byte)this._beamFunction);
dos.WriteUnsignedByte((byte)this._trackJamTargets.Count);
dos.WriteUnsignedByte((byte)this._highDensityTrackJam);
dos.WriteUnsignedByte((byte)this._pad4);
dos.WriteUnsignedInt((uint)this._jammingModeSequence);
for (int idx = 0; idx < this._trackJamTargets.Count; idx++)
{
TrackJamTarget aTrackJamTarget = (TrackJamTarget)this._trackJamTargets[idx];
aTrackJamTarget.Marshal(dos);
}
}
catch (Exception e)
{
#if DEBUG
Trace.WriteLine(e);
Trace.Flush();
#endif
this.OnException(e);
}
}
}
示例13: Marshal
public virtual void Marshal(DataOutputStream dos)
{
if (dos != null)
{
try
{
this._beamDirection.Marshal(dos);
dos.WriteFloat((float)this._azimuthBeamwidth);
dos.WriteFloat((float)this._elevationBeamwidth);
dos.WriteFloat((float)this._referenceSystem);
dos.WriteUnsignedByte((byte)this._padding1);
dos.WriteUnsignedShort((ushort)this._padding2);
dos.WriteFloat((float)this._ez);
dos.WriteFloat((float)this._ex);
dos.WriteFloat((float)this._phase);
dos.WriteUnsignedInt((uint)this._padding3);
}
catch (Exception e)
{
#if DEBUG
Trace.WriteLine(e);
Trace.Flush();
#endif
this.OnException(e);
}
}
}
示例14: Marshal
public virtual void Marshal(DataOutputStream dos)
{
if (dos != null)
{
try
{
this._munitionType.Marshal(dos);
dos.WriteUnsignedInt((uint)this._station);
dos.WriteUnsignedShort((ushort)this._quantity);
dos.WriteUnsignedByte((byte)this._munitionStatus);
dos.WriteUnsignedByte((byte)this._padding);
}
catch (Exception e)
{
#if DEBUG
Trace.WriteLine(e);
Trace.Flush();
#endif
this.OnException(e);
}
}
}
示例15: Marshal
public virtual void Marshal(DataOutputStream dos)
{
if (dos != null)
{
try
{
dos.WriteUnsignedByte((byte)this._recordType);
dos.WriteUnsignedByte((byte)this._changeIndicator);
dos.WriteUnsignedByte((byte)this._associationStatus);
dos.WriteUnsignedByte((byte)this._associationType);
this._entityID.Marshal(dos);
dos.WriteUnsignedShort((ushort)this._owsSttionLocation);
dos.WriteUnsignedShort((ushort)this._physicalConnectionType);
dos.WriteUnsignedByte((byte)this._groupMemberType);
dos.WriteUnsignedShort((ushort)this._groupNumber);
}
catch (Exception e)
{
#if DEBUG
Trace.WriteLine(e);
Trace.Flush();
#endif
this.OnException(e);
}
}
}