本文整理汇总了C#中DISnet.DataStreamUtilities.DataInputStream类的典型用法代码示例。如果您正苦于以下问题:C# DataInputStream类的具体用法?C# DataInputStream怎么用?C# DataInputStream使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DataInputStream类属于DISnet.DataStreamUtilities命名空间,在下文中一共展示了DataInputStream类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Unmarshal
public virtual void Unmarshal(DataInputStream dis)
{
if (dis != null)
{
try
{
this._recordType = dis.ReadUnsignedInt();
this._recordLength = dis.ReadUnsignedShort();
this._padding = dis.ReadUnsignedShort();
this._emitterNumber = dis.ReadUnsignedByte();
this._beamNumber = dis.ReadUnsignedByte();
this._stateIndicator = dis.ReadUnsignedByte();
this._padding2 = dis.ReadUnsignedInt();
this._azimuthOffset = dis.ReadFloat();
this._azimuthWidth = dis.ReadFloat();
this._azimuthPullRate = dis.ReadFloat();
this._azimuthPullAcceleration = dis.ReadFloat();
this._elevationOffset = dis.ReadFloat();
this._elevationWidth = dis.ReadFloat();
this._elevationPullRate = dis.ReadFloat();
this._elevationPullAcceleration = dis.ReadFloat();
this._padding3 = dis.ReadUnsignedInt();
}
catch (Exception e)
{
#if DEBUG
Trace.WriteLine(e);
Trace.Flush();
#endif
this.OnException(e);
}
}
}
示例2: unmarshal
public new void unmarshal(DataInputStream dis)
{
base.unmarshal(dis);
try
{
_requestID = dis.readUint();
_padding1 = dis.readUint();
_numberOfFixedDatumRecords = dis.readUint();
_numberOfVariableDatumRecords = dis.readUint();
for(int idx = 0; idx < _numberOfFixedDatumRecords; idx++)
{
FixedDatum anX = new FixedDatum();
anX.unmarshal(dis);
_fixedDatums.Add(anX);
};
for(int idx = 0; idx < _numberOfVariableDatumRecords; idx++)
{
VariableDatum anX = new VariableDatum();
anX.unmarshal(dis);
_variableDatums.Add(anX);
};
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例3: unmarshal
public new void unmarshal(DataInputStream dis)
{
base.unmarshal(dis);
try
{
_requiredReliabilityService = dis.readByte();
_pad1 = dis.readUshort();
_pad2 = dis.readByte();
_requestID = dis.readUint();
_timeInterval = dis.readUint();
_numberOfFixedDatumRecords = dis.readUint();
_numberOfVariableDatumRecords = dis.readUint();
for(int idx = 0; idx < _numberOfFixedDatumRecords; idx++)
{
FixedDatum anX = new FixedDatum();
anX.unmarshal(dis);
_fixedDatumRecords.Add(anX);
};
for(int idx = 0; idx < _numberOfVariableDatumRecords; idx++)
{
VariableDatum anX = new VariableDatum();
anX.unmarshal(dis);
_variableDatumRecords.Add(anX);
};
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例4: Unmarshal
public virtual void Unmarshal(DataInputStream dis)
{
if (dis != null)
{
try
{
this._domain = dis.ReadUnsignedByte();
this._objectKind = dis.ReadUnsignedByte();
this._category = dis.ReadUnsignedByte();
this._subcategory = dis.ReadUnsignedByte();
}
catch (Exception e)
{
#if DEBUG
Trace.WriteLine(e);
Trace.Flush();
#endif
this.OnException(e);
}
}
}
示例5: 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();
}
}
示例6: 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();
}
}
示例7: unmarshal
public new void unmarshal(DataInputStream dis)
{
base.unmarshal(dis);
try
{
_entityId.unmarshal(dis);
_radioId = dis.readUshort();
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例8: unmarshal
public void unmarshal(DataInputStream dis)
{
try
{
_horizontalDeflectionAngle = dis.readFloat();
_verticalDeflectionAngle = dis.readFloat();
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例9: 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();
}
}
示例10: unmarshal
public new void unmarshal(DataInputStream dis)
{
base.unmarshal(dis);
try
{
_minefieldID.unmarshal(dis);
_requestingEntityID.unmarshal(dis);
_requestID = dis.readByte();
_numberOfMissingPdus = dis.readByte();
for(int idx = 0; idx < _numberOfMissingPdus; idx++)
{
EightByteChunk anX = new EightByteChunk();
anX.unmarshal(dis);
_missingPduSequenceNumbers.Add(anX);
};
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例11: Unmarshal
public virtual void Unmarshal(DataInputStream dis)
{
if (dis != null)
{
try
{
for (int idx = 0; idx < this._otherParameters.Length; idx++)
{
this._otherParameters[idx] = dis.ReadByte();
}
}
catch (Exception e)
{
#if DEBUG
Trace.WriteLine(e);
Trace.Flush();
#endif
this.OnException(e);
}
}
}
示例12: Unmarshal
public virtual void Unmarshal(DataInputStream dis)
{
if (dis != null)
{
try
{
this._domainInitialXi = dis.ReadDouble();
this._domainFinalXi = dis.ReadDouble();
this._domainPointsXi = dis.ReadUnsignedShort();
this._interleafFactor = dis.ReadUnsignedByte();
this._axisType = dis.ReadUnsignedByte();
this._numberOfPointsOnXiAxis = dis.ReadUnsignedShort();
this._initialIndex = dis.ReadUnsignedShort();
}
catch (Exception e)
{
#if DEBUG
Trace.WriteLine(e);
Trace.Flush();
#endif
this.OnException(e);
}
}
}
示例13: Unmarshal
public virtual void Unmarshal(DataInputStream dis)
{
if (dis != null)
{
try
{
this._frequency = dis.ReadFloat();
this._frequencyRange = dis.ReadFloat();
this._effectiveRadiatedPower = dis.ReadFloat();
this._pulseRepetitionFrequency = dis.ReadFloat();
this._pulseWidth = dis.ReadFloat();
this._beamAzimuthCenter = dis.ReadFloat();
this._beamAzimuthSweep = dis.ReadFloat();
this._beamElevationCenter = dis.ReadFloat();
this._beamElevationSweep = dis.ReadFloat();
this._beamSweepSync = dis.ReadFloat();
}
catch (Exception e)
{
#if DEBUG
Trace.WriteLine(e);
Trace.Flush();
#endif
this.OnException(e);
}
}
}
示例14: Unmarshal
public virtual void Unmarshal(DataInputStream dis)
{
if (dis != null)
{
try
{
this._systemType = dis.ReadUnsignedShort();
this._systemName = dis.ReadUnsignedShort();
this._systemMode = dis.ReadUnsignedByte();
this._changeOptions = dis.ReadUnsignedByte();
}
catch (Exception e)
{
#if DEBUG
Trace.WriteLine(e);
Trace.Flush();
#endif
this.OnException(e);
}
}
}
示例15: unmarshal
public void unmarshal(DataInputStream dis)
{
try
{
_antennaLocation.unmarshal(dis);
_relativeAntennaLocation.unmarshal(dis);
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}