} // end of marshal method new public 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(); } } // end of unmarshal method
public override void readPacketData(DataInputStream datainputstream) { field_22035_a = datainputstream.readFloat(); field_22034_b = datainputstream.readFloat(); field_22037_e = datainputstream.readFloat(); field_22036_f = datainputstream.readFloat(); field_22039_c = datainputstream.readBoolean(); field_22038_d = datainputstream.readBoolean(); }
public override void readPacketData(DataInputStream datainputstream) { xPosition = datainputstream.readDouble(); yPosition = datainputstream.readDouble(); stance = datainputstream.readDouble(); zPosition = datainputstream.readDouble(); yaw = datainputstream.readFloat(); pitch = datainputstream.readFloat(); base.readPacketData(datainputstream); }
} // end of marshal method public void unmarshal(DataInputStream dis) { try { _horizontalDeflectionAngle = dis.readFloat(); _verticalDeflectionAngle = dis.readFloat(); } // end try catch (Exception e) { Trace.WriteLine(e); Trace.Flush(); } } // end of unmarshal method
} // end of marshal method public void unmarshal(DataInputStream dis) { try { _powerSetting = dis.readFloat(); _engineRpm = dis.readFloat(); } // end try catch (Exception e) { Trace.WriteLine(e); Trace.Flush(); } } // end of unmarshal method
} // end of marshal method new public 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(); } } // end of unmarshal method
} // end of marshal method public void unmarshal(DataInputStream dis) { try { _x = dis.readFloat(); _y = dis.readFloat(); _z = dis.readFloat(); } // end try catch (Exception e) { Trace.WriteLine(e); Trace.Flush(); } } // end of unmarshal method
} // end of marshal method public void unmarshal(DataInputStream dis) { try { _beamAzimuthCenter = dis.readFloat(); _beamAzimuthSweep = dis.readFloat(); _beamElevationCenter = dis.readFloat(); _beamElevationSweep = dis.readFloat(); _beamSweepSync = dis.readFloat(); } // end try catch (Exception e) { Trace.WriteLine(e); Trace.Flush(); } } // end of unmarshal method
} // end of marshal method public void unmarshal(DataInputStream dis) { try { _activeEmissionParameterIndex = dis.readUshort(); _scanPattern = dis.readUshort(); _beamCenterAzimuth = dis.readFloat(); _azimuthalBeamwidth = dis.readFloat(); _beamCenterDE = dis.readFloat(); _deBeamwidth = dis.readFloat(); } // end try catch (Exception e) { Trace.WriteLine(e); Trace.Flush(); } } // end of unmarshal method
} // end of marshal method new public void unmarshal(DataInputStream dis) { base.unmarshal(dis); try { _radioEntityType.unmarshal(dis); _transmitState = dis.readByte(); _inputSource = dis.readByte(); _padding1 = dis.readUshort(); _antennaLocation.unmarshal(dis); _relativeAntennaLocation.unmarshal(dis); _antennaPatternType = dis.readUshort(); _antennaPatternCount = dis.readUshort(); _frequency = dis.readUlong(); _transmitFrequencyBandwidth = dis.readFloat(); _power = dis.readFloat(); _modulationType.unmarshal(dis); _cryptoSystem = dis.readUshort(); _cryptoKeyId = dis.readUshort(); _modulationParameterCount = dis.readByte(); _padding2 = dis.readUshort(); _padding3 = dis.readByte(); for (int idx = 0; idx < _modulationParameterCount; idx++) { Vector3Float anX = new Vector3Float(); anX.unmarshal(dis); _modulationParametersList.Add(anX); } ; for (int idx = 0; idx < _antennaPatternCount; idx++) { Vector3Float anX = new Vector3Float(); anX.unmarshal(dis); _antennaPatternList.Add(anX); } ; } // end try catch (Exception e) { Trace.WriteLine(e); Trace.Flush(); } } // end of unmarshal method
private void readSmearInfo(string text) { DataInputStream dataInputStream = new DataInputStream(new FileInputStream(text)); if (dataInputStream.readInt() != -1060454374) { dataInputStream.close(); string text2 = new StringBuilder().append("Bad smear format for ").append(text).toString(); throw new IOException(text2); } if (dataInputStream.readInt() != this.unigrams.Length) { dataInputStream.close(); string text3 = new StringBuilder().append("Bad unigram length in ").append(text).toString(); throw new IOException(text3); } this.bigramSmearMap = new HashMap(); this.unigramSmearTerm = new float[this.unigrams.Length]; [email protected](new StringBuilder().append("Reading ").append(this.unigrams.Length).toString()); for (int i = 0; i < this.unigrams.Length; i++) { this.unigramSmearTerm[i] = dataInputStream.readFloat(); } for (int i = 0; i < this.unigrams.Length; i++) { [email protected](new StringBuilder().append("Processed ").append(i).append(" of ").append(this.loadedBigramBuffers.Length).toString()); int num = dataInputStream.readInt(); NGramBuffer bigramBuffer = this.getBigramBuffer(i); if (bigramBuffer.getNumberNGrams() != num) { dataInputStream.close(); string text4 = new StringBuilder().append("Bad ngrams for unigram ").append(i).append(" Found ").append(num).append(" expected ").append(bigramBuffer.getNumberNGrams()).toString(); throw new IOException(text4); } for (int j = 0; j < num; j++) { int wordID = bigramBuffer.getWordID(j); this.putSmearTerm(i, wordID, dataInputStream.readFloat()); } } dataInputStream.close(); }
private float readFloat(DataInputStream dataInputStream, bool flag) { this.bytesRead += 4L; if (flag) { return(dataInputStream.readFloat()); } return(Utilities.readLittleEndianFloat(dataInputStream)); }
} // end of marshal method public void unmarshal(DataInputStream dis) { try { _erp = dis.readFloat(); _frequency = dis.readFloat(); _pgrf = dis.readFloat(); _pulseWidth = dis.readFloat(); _burstLength = dis.readUint(); _applicableModes = dis.readByte(); _pad2 = dis.readUshort(); _pad3 = dis.readByte(); } // end try catch (Exception e) { Trace.WriteLine(e); Trace.Flush(); } } // end of unmarshal method
} // end of marshal method 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(); } } // end of unmarshal method
} // end of marshal method public void unmarshal(DataInputStream dis) { try { _frequency = dis.readFloat(); _frequencyRange = dis.readFloat(); _effectiveRadiatedPower = dis.readFloat(); _pulseRepetitionFrequency = dis.readFloat(); _pulseWidth = dis.readFloat(); _beamAzimuthCenter = dis.readFloat(); _beamAzimuthSweep = dis.readFloat(); _beamElevationCenter = dis.readFloat(); _beamElevationSweep = dis.readFloat(); _beamSweepSync = dis.readFloat(); } // end try catch (Exception e) { Trace.WriteLine(e); Trace.Flush(); } } // end of unmarshal method
} // end of marshal method 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(); } } // end of unmarshal method
} // end of marshal method new public void unmarshal(DataInputStream dis) { base.unmarshal(dis); try { _fieldScale = dis.readFloat(); _fieldOffset = dis.readFloat(); _numberOfValues = dis.readUshort(); for (int idx = 0; idx < _numberOfValues; idx++) { TwoByteChunk anX = new TwoByteChunk(); anX.unmarshal(dis); _dataValues.Add(anX); } ; } // end try catch (Exception e) { Trace.WriteLine(e); Trace.Flush(); } } // end of unmarshal method
protected internal virtual float readFloat(DataInputStream dis) { float result; if (this.swap) { result = Utilities.readLittleEndianFloat(dis); } else { result = dis.readFloat(); } return(result); }
} // end of marshal method new public void unmarshal(DataInputStream dis) { base.unmarshal(dis); try { _receiverState = dis.readUshort(); _padding1 = dis.readUshort(); _receivedPoser = dis.readFloat(); _transmitterEntityId.unmarshal(dis); _transmitterRadioId = dis.readUshort(); } // end try catch (Exception e) { Trace.WriteLine(e); Trace.Flush(); } } // end of unmarshal method
} // end of marshal method new public void unmarshal(DataInputStream dis) { base.unmarshal(dis); try { _munitionID.unmarshal(dis); _eventID.unmarshal(dis); _fireMissionIndex = dis.readUint(); _locationInWorldCoordinates.unmarshal(dis); _burstDescriptor.unmarshal(dis); _velocity.unmarshal(dis); _range = dis.readFloat(); } // end try catch (Exception e) { Trace.WriteLine(e); Trace.Flush(); } } // end of unmarshal method
} // end of marshal method new public 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(); } } // end of unmarshal method
public override void readPacketData(DataInputStream datainputstream) { explosionX = datainputstream.readDouble(); explosionY = datainputstream.readDouble(); explosionZ = datainputstream.readDouble(); explosionSize = datainputstream.readFloat(); int i = datainputstream.readInt(); destroyedBlockPositions = new HashSet(); var j = (int)explosionX; var k = (int)explosionY; var l = (int)explosionZ; for (int i1 = 0; i1 < i; i1++) { int j1 = datainputstream.readByte() + j; int k1 = datainputstream.readByte() + k; int l1 = datainputstream.readByte() + l; destroyedBlockPositions.add(new ChunkPosition(j1, k1, l1)); } }
public override void readPacketData(DataInputStream datainputstream) { yaw = datainputstream.readFloat(); pitch = datainputstream.readFloat(); base.readPacketData(datainputstream); }
} // end of marshal method new public void unmarshal(DataInputStream dis) { base.unmarshal(dis); try { _site = dis.readUshort(); _application = dis.readUshort(); _entity = dis.readUshort(); _forceId = dis.readByte(); _numberOfArticulationParameters = dis.readByte(); _entityKind = dis.readByte(); _domain = dis.readByte(); _country = dis.readUshort(); _category = dis.readByte(); _subcategory = dis.readByte(); _specific = dis.readByte(); _extra = dis.readByte(); _altEntityKind = dis.readByte(); _altDomain = dis.readByte(); _altCountry = dis.readUshort(); _altCategory = dis.readByte(); _altSubcategory = dis.readByte(); _altSpecific = dis.readByte(); _altExtra = dis.readByte(); _xVelocity = dis.readFloat(); _yVelocity = dis.readFloat(); _zVelocity = dis.readFloat(); _xLocation = dis.readDouble(); _yLocation = dis.readDouble(); _zLocation = dis.readDouble(); _psi = dis.readFloat(); _theta = dis.readFloat(); _phi = dis.readFloat(); _entityAppearance = dis.readUint(); _deadReckoningAlgorithm = dis.readByte(); for (int idx = 0; idx < _otherParameters.Length; idx++) { _otherParameters[idx] = dis.readByte(); } // end of array unmarshaling _xAcceleration = dis.readFloat(); _yAcceleration = dis.readFloat(); _zAcceleration = dis.readFloat(); _xAngularVelocity = dis.readFloat(); _yAngularVelocity = dis.readFloat(); _zAngularVelocity = dis.readFloat(); for (int idx = 0; idx < _marking.Length; idx++) { _marking[idx] = dis.readByte(); } // end of array unmarshaling _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(); } } // end of unmarshal method
public static List readWatchableObjects(DataInputStream datainputstream) { ArrayList arraylist = null; for (byte byte0 = datainputstream.readByte(); byte0 != 127; byte0 = datainputstream.readByte()) { if (arraylist == null) { arraylist = new ArrayList(); } int i = (byte0 & 0xe0) >> 5; int j = byte0 & 0x1f; WatchableObject watchableobject = null; switch (i) { case 0: // '\0' watchableobject = new WatchableObject(i, j, Byte.valueOf(datainputstream.readByte())); break; case 1: // '\001' watchableobject = new WatchableObject(i, j, Short.valueOf(datainputstream.readShort())); break; case 2: // '\002' watchableobject = new WatchableObject(i, j, Integer.valueOf(datainputstream.readInt())); break; case 3: // '\003' watchableobject = new WatchableObject(i, j, Float.valueOf(datainputstream.readFloat())); break; case 4: // '\004' watchableobject = new WatchableObject(i, j, datainputstream.readUTF()); break; case 5: // '\005' short word0 = datainputstream.readShort(); byte byte1 = datainputstream.readByte(); short word1 = datainputstream.readShort(); watchableobject = new WatchableObject(i, j, new ItemStack(word0, byte1, word1)); // fall through (not.. c#..) int k2 = datainputstream.readInt(); int l2 = datainputstream.readInt(); int i12 = datainputstream.readInt(); watchableobject = new WatchableObject(i, j, new ChunkCoordinates(k2, l2, i12)); break; case 6: // '\006' int k = datainputstream.readInt(); int l = datainputstream.readInt(); int i1 = datainputstream.readInt(); watchableobject = new WatchableObject(i, j, new ChunkCoordinates(k, l, i1)); break; } arraylist.add(watchableobject); } return(arraylist); }