本文整理汇总了C#中DISnet.DataStreamUtilities.DataInputStream.readShort方法的典型用法代码示例。如果您正苦于以下问题:C# DataInputStream.readShort方法的具体用法?C# DataInputStream.readShort怎么用?C# DataInputStream.readShort使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DISnet.DataStreamUtilities.DataInputStream
的用法示例。
在下文中一共展示了DataInputStream.readShort方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: 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();
}
}
示例2: unmarshal
public new void unmarshal(DataInputStream dis)
{
base.unmarshal(dis);
try
{
_requestingEntityID.unmarshal(dis);
_servicingEntityID.unmarshal(dis);
_serviceTypeRequested = dis.readByte();
_numberOfSupplyTypes = dis.readByte();
_serviceRequestPadding = dis.readShort();
for(int idx = 0; idx < _numberOfSupplyTypes; idx++)
{
SupplyQuantity anX = new SupplyQuantity();
anX.unmarshal(dis);
_supplies.Add(anX);
};
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例3: unmarshal
public void unmarshal(DataInputStream dis)
{
try
{
_parameterIndex = dis.readUshort();
_parameterValue = dis.readShort();
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例4: unmarshal
public void unmarshal(DataInputStream dis)
{
try
{
_currentShaftRPMs = dis.readShort();
_orderedShaftRPMs = dis.readShort();
_shaftRPMRateOfChange = dis.readFloat();
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例5: unmarshal
public new void unmarshal(DataInputStream dis)
{
base.unmarshal(dis);
try
{
_issuingEntityID.unmarshal(dis);
_collidingEntityID.unmarshal(dis);
_collisionEventID.unmarshal(dis);
_pad = dis.readShort();
_contactVelocity.unmarshal(dis);
_mass = dis.readFloat();
_location.unmarshal(dis);
_collisionResultXX = dis.readFloat();
_collisionResultXY = dis.readFloat();
_collisionResultXZ = dis.readFloat();
_collisionResultYY = dis.readFloat();
_collisionResultYZ = dis.readFloat();
_collisionResultZZ = dis.readFloat();
_unitSurfaceNormal.unmarshal(dis);
_coefficientOfRestitution = dis.readFloat();
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例6: unmarshal
public new void unmarshal(DataInputStream dis)
{
base.unmarshal(dis);
try
{
_munitionID.unmarshal(dis);
_eventID.unmarshal(dis);
_velocity.unmarshal(dis);
_locationInWorldCoordinates.unmarshal(dis);
_burstDescriptor.unmarshal(dis);
_locationInEntityCoordinates.unmarshal(dis);
_detonationResult = dis.readByte();
_numberOfArticulationParameters = dis.readByte();
_pad = dis.readShort();
for(int idx = 0; idx < _numberOfArticulationParameters; idx++)
{
ArticulationParameter anX = new ArticulationParameter();
anX.unmarshal(dis);
_articulationParameters.Add(anX);
};
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例7: unmarshal
public void unmarshal(DataInputStream dis)
{
try
{
_beamDirection.unmarshal(dis);
_azimuthBeamwidth = dis.readFloat();
_referenceSystem = dis.readFloat();
_padding1 = dis.readShort();
_padding2 = dis.readByte();
_ez = dis.readFloat();
_ex = dis.readFloat();
_phase = dis.readFloat();
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例8: unmarshal
public void unmarshal(DataInputStream dis)
{
try
{
_protocolVersion = dis.readByte();
_exerciseID = dis.readByte();
_pduType = dis.readByte();
_protocolFamily = dis.readByte();
_timestamp = dis.readUint();
_length = dis.readUshort();
_padding = dis.readShort();
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例9: unmarshal
public new void unmarshal(DataInputStream dis)
{
base.unmarshal(dis);
try
{
_encodingScheme = dis.readUshort();
_tdlType = dis.readUshort();
_sampleRate = dis.readUint();
_dataLength = dis.readShort();
_samples = dis.readShort();
_data = dis.readByteArray((_dataLength / 8) + (_dataLength % 8 > 0 ? 1 : 0)); //09062009 Post processed. Needed to convert from bits to bytes
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例10: unmarshal
public new void unmarshal(DataInputStream dis)
{
base.unmarshal(dis);
try
{
_realWorldTime.unmarshal(dis);
_reason = dis.readByte();
_frozenBehavior = dis.readByte();
_padding1 = dis.readShort();
_requestID = dis.readUint();
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}