本文整理汇总了C#中DISnet.DataStreamUtilities.DataInputStream.ReadShort方法的典型用法代码示例。如果您正苦于以下问题:C# DataInputStream.ReadShort方法的具体用法?C# DataInputStream.ReadShort怎么用?C# DataInputStream.ReadShort使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DISnet.DataStreamUtilities.DataInputStream
的用法示例。
在下文中一共展示了DataInputStream.ReadShort方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Unmarshal
public virtual void Unmarshal(DataInputStream dis)
{
if (dis != null)
{
try
{
this._currentShaftRPMs = dis.ReadShort();
this._orderedShaftRPMs = dis.ReadShort();
this._shaftRPMRateOfChange = dis.ReadFloat();
}
catch (Exception e)
{
#if DEBUG
Trace.WriteLine(e);
Trace.Flush();
#endif
this.OnException(e);
}
}
}
示例2: Unmarshal
public virtual void Unmarshal(DataInputStream dis)
{
if (dis != null)
{
try
{
this._protocolVersion = dis.ReadUnsignedByte();
this._exerciseID = dis.ReadUnsignedByte();
this._pduType = dis.ReadUnsignedByte();
this._protocolFamily = dis.ReadUnsignedByte();
this._timestamp = dis.ReadUnsignedInt();
this._length = dis.ReadUnsignedShort();
this._padding = dis.ReadShort();
}
catch (Exception e)
{
#if DEBUG
Trace.WriteLine(e);
Trace.Flush();
#endif
this.OnException(e);
}
}
}
示例3: Unmarshal
public virtual void Unmarshal(DataInputStream dis)
{
if (dis != null)
{
try
{
this._parameterIndex = dis.ReadUnsignedShort();
this._parameterValue = dis.ReadShort();
}
catch (Exception e)
{
#if DEBUG
Trace.WriteLine(e);
Trace.Flush();
#endif
this.OnException(e);
}
}
}
示例4: Unmarshal
public virtual void Unmarshal(DataInputStream dis)
{
if (dis != null)
{
try
{
this._beamDirection.Unmarshal(dis);
this._azimuthBeamwidth = dis.ReadFloat();
this._referenceSystem = dis.ReadFloat();
this._padding1 = dis.ReadShort();
this._padding2 = dis.ReadByte();
this._ez = dis.ReadFloat();
this._ex = dis.ReadFloat();
this._phase = dis.ReadFloat();
}
catch (Exception e)
{
#if DEBUG
Trace.WriteLine(e);
Trace.Flush();
#endif
this.OnException(e);
}
}
}