本文整理汇总了C#中DISnet.DataStreamUtilities.DataInputStream.readUshort方法的典型用法代码示例。如果您正苦于以下问题:C# DataInputStream.readUshort方法的具体用法?C# DataInputStream.readUshort怎么用?C# DataInputStream.readUshort使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DISnet.DataStreamUtilities.DataInputStream
的用法示例。
在下文中一共展示了DataInputStream.readUshort方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: unmarshal
public void unmarshal(DataInputStream dis)
{
try
{
_systemType = dis.readUshort();
_systemName = dis.readUshort();
_systemMode = dis.readByte();
_changeOptions = dis.readByte();
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例2: 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();
}
}
示例3: unmarshal
public void unmarshal(DataInputStream dis)
{
try
{
_systemDataLength = dis.readByte();
_numberOfBeams = dis.readByte();
_emissionsPadding2 = dis.readUshort();
_emitterSystem.unmarshal(dis);
_location.unmarshal(dis);
for(int idx = 0; idx < _numberOfBeams; idx++)
{
ElectronicEmissionBeamData anX = new ElectronicEmissionBeamData();
anX.unmarshal(dis);
_beamDataRecords.Add(anX);
};
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例4: unmarshal
public new void unmarshal(DataInputStream dis)
{
base.unmarshal(dis);
try
{
_controlType = dis.readByte();
_communicationsChannelType = dis.readByte();
_sourceEntityID.unmarshal(dis);
_sourceCommunicationsDeviceID = dis.readByte();
_sourceLineID = dis.readByte();
_transmitPriority = dis.readByte();
_transmitLineState = dis.readByte();
_command = dis.readByte();
_masterEntityID.unmarshal(dis);
_masterCommunicationsDeviceID = dis.readUshort();
_intercomParametersLength = dis.readUint();
for(int idx = 0; idx < _intercomParametersLength; idx++)
{
IntercomCommunicationsParameters anX = new IntercomCommunicationsParameters();
anX.unmarshal(dis);
_intercomParameters.Add(anX);
};
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例5: unmarshal
public new void unmarshal(DataInputStream dis)
{
base.unmarshal(dis);
try
{
_emittingEntityId.unmarshal(dis);
_eventID.unmarshal(dis);
_location.unmarshal(dis);
_systemID.unmarshal(dis);
_pad2 = dis.readUshort();
_fundamentalParameters.unmarshal(dis);
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例6: unmarshal
public void unmarshal(DataInputStream dis)
{
try
{
_layerNumber = dis.readByte();
_layerSpecificInformaiton = dis.readByte();
_length = dis.readUshort();
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例7: unmarshal
public new void unmarshal(DataInputStream dis)
{
base.unmarshal(dis);
try
{
_orginatingEntityID.unmarshal(dis);
_infraredSignatureRepresentationIndex = dis.readUshort();
_acousticSignatureRepresentationIndex = dis.readUshort();
_radarCrossSectionSignatureRepresentationIndex = dis.readUshort();
_numberOfPropulsionSystems = dis.readUshort();
_numberOfVectoringNozzleSystems = dis.readUshort();
for(int idx = 0; idx < _numberOfPropulsionSystems; idx++)
{
PropulsionSystemData anX = new PropulsionSystemData();
anX.unmarshal(dis);
_propulsionSystemData.Add(anX);
};
for(int idx = 0; idx < _numberOfVectoringNozzleSystems; idx++)
{
VectoringNozzleSystemData anX = new VectoringNozzleSystemData();
anX.unmarshal(dis);
_vectoringSystemData.Add(anX);
};
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例8: unmarshal
public void unmarshal(DataInputStream dis)
{
try
{
_segmentNumber = dis.readByte();
_segmentAppearance.unmarshal(dis);
_location.unmarshal(dis);
_orientation.unmarshal(dis);
_segmentLength = dis.readUshort();
_segmentWidth = dis.readUshort();
_segmentHeight = dis.readUshort();
_segmentDepth = dis.readUshort();
_pad1 = dis.readUint();
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例9: unmarshal
public new void unmarshal(DataInputStream dis)
{
base.unmarshal(dis);
try
{
_environmentalSimulationApplicationID.unmarshal(dis);
_fieldNumber = dis.readUshort();
_pduNumber = dis.readUshort();
_pduTotal = dis.readUshort();
_coordinateSystem = dis.readUshort();
_numberOfGridAxes = dis.readByte();
_constantGrid = dis.readByte();
_environmentType.unmarshal(dis);
_orientation.unmarshal(dis);
_sampleTime = dis.readLong();
_totalValues = dis.readUint();
_vectorDimension = dis.readByte();
_padding1 = dis.readUshort();
_padding2 = dis.readByte();
for(int idx = 0; idx < _numberOfGridAxes; idx++)
{
GridAxisRecord anX = new GridAxisRecord();
anX.unmarshal(dis);
_gridDataList.Add(anX);
};
} // 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);
_simulationTime.unmarshal(dis);
_requiredReliabilityService = dis.readByte();
_pad1 = dis.readUshort();
_pad2 = dis.readByte();
_requestID = dis.readUint();
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例11: unmarshal
public new void unmarshal(DataInputStream dis)
{
base.unmarshal(dis);
try
{
_designatingEntityID.unmarshal(dis);
_codeName = dis.readUshort();
_designatedEntityID.unmarshal(dis);
_designatorCode = dis.readUshort();
_designatorPower = dis.readFloat();
_designatorWavelength = dis.readFloat();
_designatorSpotWrtDesignated.unmarshal(dis);
_designatorSpotLocation.unmarshal(dis);
_deadReckoningAlgorithm = dis.readByte();
_padding1 = dis.readUshort();
_padding2 = dis.readByte();
_entityLinearAcceleration.unmarshal(dis);
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例12: unmarshal
public new void unmarshal(DataInputStream dis)
{
base.unmarshal(dis);
try
{
_environementalProcessID.unmarshal(dis);
_environmentType.unmarshal(dis);
_modelType = dis.readByte();
_environmentStatus = dis.readByte();
_numberOfEnvironmentRecords = dis.readByte();
_sequenceNumber = dis.readUshort();
for(int idx = 0; idx < _numberOfEnvironmentRecords; idx++)
{
Environment anX = new Environment();
anX.unmarshal(dis);
_environmentRecords.Add(anX);
};
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例13: unmarshal
public new void unmarshal(DataInputStream dis)
{
base.unmarshal(dis);
try
{
_numberOfValues = dis.readUshort();
for(int idx = 0; idx < _numberOfValues; idx++)
{
FourByteChunk anX = new FourByteChunk();
anX.unmarshal(dis);
_dataValues.Add(anX);
};
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例14: unmarshal
public new void unmarshal(DataInputStream dis)
{
base.unmarshal(dis);
try
{
_entityID.unmarshal(dis);
_communicationsDeviceID = dis.readUshort();
_encodingScheme = dis.readUshort();
_tdlType = dis.readUshort();
_sampleRate = dis.readUint();
_dataLength = dis.readUshort();
_samples = dis.readUshort();
_data = dis.readByteArray(_dataLength);
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例15: unmarshal
public new void unmarshal(DataInputStream dis)
{
base.unmarshal(dis);
try
{
_acknowledgeFlag = dis.readUshort();
_responseFlag = dis.readUshort();
_requestID = dis.readUint();
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}