本文整理汇总了C#中DISnet.DataStreamUtilities.DataOutputStream.writeShort方法的典型用法代码示例。如果您正苦于以下问题:C# DataOutputStream.writeShort方法的具体用法?C# DataOutputStream.writeShort怎么用?C# DataOutputStream.writeShort使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DISnet.DataStreamUtilities.DataOutputStream
的用法示例。
在下文中一共展示了DataOutputStream.writeShort方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: 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();
}
}
示例2: 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
{
_requestingEntityID.marshal(dos);
_servicingEntityID.marshal(dos);
dos.writeByte((byte)_serviceTypeRequested);
dos.writeByte((byte)_supplies.Count);
dos.writeShort((short)_serviceRequestPadding);
for(int idx = 0; idx < _supplies.Count; idx++)
{
SupplyQuantity aSupplyQuantity = (SupplyQuantity)_supplies[idx];
aSupplyQuantity.marshal(dos);
} // end of list marshalling
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例3: 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();
}
}
示例4: 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.writeShort((short)_currentShaftRPMs);
dos.writeShort((short)_orderedShaftRPMs);
dos.writeFloat((float)_shaftRPMRateOfChange);
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例5: 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
{
_issuingEntityID.marshal(dos);
_collidingEntityID.marshal(dos);
_collisionEventID.marshal(dos);
dos.writeShort((short)_pad);
_contactVelocity.marshal(dos);
dos.writeFloat((float)_mass);
_location.marshal(dos);
dos.writeFloat((float)_collisionResultXX);
dos.writeFloat((float)_collisionResultXY);
dos.writeFloat((float)_collisionResultXZ);
dos.writeFloat((float)_collisionResultYY);
dos.writeFloat((float)_collisionResultYZ);
dos.writeFloat((float)_collisionResultZZ);
_unitSurfaceNormal.marshal(dos);
dos.writeFloat((float)_coefficientOfRestitution);
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例6: 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
{
_munitionID.marshal(dos);
_eventID.marshal(dos);
_velocity.marshal(dos);
_locationInWorldCoordinates.marshal(dos);
_burstDescriptor.marshal(dos);
_locationInEntityCoordinates.marshal(dos);
dos.writeByte((byte)_detonationResult);
dos.writeByte((byte)_articulationParameters.Count);
dos.writeShort((short)_pad);
for(int idx = 0; idx < _articulationParameters.Count; idx++)
{
ArticulationParameter aArticulationParameter = (ArticulationParameter)_articulationParameters[idx];
aArticulationParameter.marshal(dos);
} // end of list marshalling
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例7: 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
{
_beamDirection.marshal(dos);
dos.writeFloat((float)_azimuthBeamwidth);
dos.writeFloat((float)_referenceSystem);
dos.writeShort((short)_padding1);
dos.writeByte((byte)_padding2);
dos.writeFloat((float)_ez);
dos.writeFloat((float)_ex);
dos.writeFloat((float)_phase);
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例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.writeByte((byte)_protocolVersion);
dos.writeByte((byte)_exerciseID);
dos.writeByte((byte)_pduType);
dos.writeByte((byte)_protocolFamily);
dos.writeUint((uint)_timestamp);
dos.writeUshort((ushort)_length);
dos.writeShort((short)_padding);
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例9: 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.writeUshort((ushort)_encodingScheme);
dos.writeUshort((ushort)_tdlType);
dos.writeUint((uint)_sampleRate);
dos.writeShort((short)((_dataLength == 0 && _data.Length > 0) ? _data.Length * 8 : _dataLength)); //09062009 Post processed. If value is zero then default to every byte will use all 8 bits
dos.writeShort((short)_samples);
dos.writeByte (_data);
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例10: 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);
dos.writeByte((byte)_reason);
dos.writeByte((byte)_frozenBehavior);
dos.writeShort((short)_padding1);
dos.writeUint((uint)_requestID);
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}