本文整理汇总了C#中DISnet.DataStreamUtilities.DataInputStream.readByte方法的典型用法代码示例。如果您正苦于以下问题:C# DataInputStream.readByte方法的具体用法?C# DataInputStream.readByte怎么用?C# DataInputStream.readByte使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DISnet.DataStreamUtilities.DataInputStream
的用法示例。
在下文中一共展示了DataInputStream.readByte方法的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
{
_entityID.unmarshal(dis);
_forceId = dis.readByte();
_numberOfArticulationParameters = dis.readByte();
_entityType.unmarshal(dis);
_alternativeEntityType.unmarshal(dis);
_entityLinearVelocity.unmarshal(dis);
_entityLocation.unmarshal(dis);
_entityOrientation.unmarshal(dis);
_entityAppearance = dis.readUint();
_deadReckoningParameters.unmarshal(dis);
_marking.unmarshal(dis);
_capabilities = dis.readUint();
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();
}
}
示例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
{
_objectID.unmarshal(dis);
_referencedObjectID.unmarshal(dis);
_updateNumber = dis.readUshort();
_forceID = dis.readByte();
_modifications = dis.readByte();
_objectType.unmarshal(dis);
_objectLocation.unmarshal(dis);
_objectOrientation.unmarshal(dis);
_objectAppearance = dis.readDouble();
_requesterID.unmarshal(dis);
_receivingID.unmarshal(dis);
_pad2 = dis.readUint();
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例5: 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();
}
}
示例6: unmarshal
public new void unmarshal(DataInputStream dis)
{
base.unmarshal(dis);
try
{
_issuingEntityID.unmarshal(dis);
_collidingEntityID.unmarshal(dis);
_eventID.unmarshal(dis);
_collisionType = dis.readByte();
_pad = dis.readByte();
_velocity.unmarshal(dis);
_mass = dis.readFloat();
_location.unmarshal(dis);
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例7: 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();
}
}
示例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
{
_orginatingEntityID.unmarshal(dis);
_recevingEntityID.unmarshal(dis);
_requestID = dis.readUint();
_requiredReliabilityService = dis.readByte();
_tranferType = dis.readByte();
_transferEntityID.unmarshal(dis);
_numberOfRecordSets = dis.readByte();
for(int idx = 0; idx < _numberOfRecordSets; idx++)
{
RecordSet anX = new RecordSet();
anX.unmarshal(dis);
_recordSets.Add(anX);
};
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例10: 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();
}
}
示例11: unmarshal
public void unmarshal(DataInputStream dis)
{
try
{
_environmentType = dis.readUint();
_length = dis.readByte();
_index = dis.readByte();
_padding1 = dis.readByte();
_geometry = dis.readByte();
_padding2 = dis.readByte();
} // 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
{
_entityID.unmarshal(dis);
_padding1 = dis.readByte();
_numberOfArticulationParameters = dis.readByte();
_entityLinearVelocity.unmarshal(dis);
_entityLocation.unmarshal(dis);
_entityOrientation.unmarshal(dis);
_entityAppearance = dis.readUint();
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();
}
}
示例14: unmarshal
public new void unmarshal(DataInputStream dis)
{
base.unmarshal(dis);
try
{
_groupEntityID.unmarshal(dis);
_groupedEntityCategory = dis.readByte();
_numberOfGroupedEntities = dis.readByte();
_pad2 = dis.readUint();
_latitude = dis.readDouble();
_longitude = dis.readDouble();
for(int idx = 0; idx < _numberOfGroupedEntities; idx++)
{
VariableDatum anX = new VariableDatum();
anX.unmarshal(dis);
_groupedEntityDescriptions.Add(anX);
};
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例15: unmarshal
public new void unmarshal(DataInputStream dis)
{
base.unmarshal(dis);
try
{
_minefieldID.unmarshal(dis);
_minefieldSequence = dis.readUshort();
_forceID = dis.readByte();
_numberOfPerimeterPoints = dis.readByte();
_minefieldType.unmarshal(dis);
_numberOfMineTypes = dis.readUshort();
_minefieldLocation.unmarshal(dis);
_minefieldOrientation.unmarshal(dis);
_appearance = dis.readUshort();
_protocolMode = dis.readUshort();
for(int idx = 0; idx < _numberOfPerimeterPoints; idx++)
{
Point anX = new Point();
anX.unmarshal(dis);
_perimeterPoints.Add(anX);
};
for(int idx = 0; idx < _numberOfMineTypes; idx++)
{
EntityType anX = new EntityType();
anX.unmarshal(dis);
_mineType.Add(anX);
};
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}