} // end of marshal method new public void unmarshal(DataInputStream dis) { base.unmarshal(dis); try { _emittingEntityID.unmarshal(dis); _eventID.unmarshal(dis); _stateUpdateIndicator = dis.readByte(); _numberOfSystems = dis.readByte(); _paddingForEmissionsPdu = dis.readUshort(); for (int idx = 0; idx < _numberOfSystems; idx++) { ElectronicEmissionSystemData anX = new ElectronicEmissionSystemData(); anX.unmarshal(dis); _systems.Add(anX); } ; } // 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 { _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(); } } // end of unmarshal method
public override void readPacketData(DataInputStream datainputstream) { windowId = datainputstream.readByte(); inventoryType = datainputstream.readByte(); windowTitle = datainputstream.readUTF(); slotsCount = datainputstream.readByte(); }
} // end of marshal method new public 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(); } } // end of unmarshal method
} // end of marshal method new public 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(); } } // end of unmarshal method
} // end of marshal method new public 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(); } } // end of unmarshal method
} // end of marshal method new public void unmarshal(DataInputStream dis) { base.unmarshal(dis); try { _requestID = dis.readUint(); _requiredReliabilityService = dis.readByte(); _pad1 = dis.readUshort(); _pad2 = dis.readByte(); _eventType = dis.readUshort(); _time = dis.readUint(); _numberOfRecords = dis.readUint(); for (int idx = 0; idx < _numberOfRecords; idx++) { FourByteChunk anX = new FourByteChunk(); anX.unmarshal(dis); _recordIDs.Add(anX); } ; } // end try catch (Exception e) { Trace.WriteLine(e); Trace.Flush(); } } // end of unmarshal method
static GlobalHolidayCalendarLookup() { ImmutableMap.Builder <string, HolidayCalendar> builder = ImmutableMap.builder(); ResourceLocator locator = ResourceLocator.ofClasspath("com/opengamma/strata/basics/date/GlobalHolidayCalendars.bin"); try { using (Stream fis = locator.ByteSource.openStream()) { using (DataInputStream @in = new DataInputStream(fis)) { if (@in.readByte() != 'H' || @in.readByte() != 'C' || @in.readByte() != 'a' || @in.readByte() != 'l') { Console.Error.WriteLine("ERROR: Corrupt holiday calendar data file"); } else { short calSize = @in.readShort(); for (int i = 0; i < calSize; i++) { HolidayCalendar cal = ImmutableHolidayCalendar.readExternal(@in); builder.put(cal.Id.Name, cal); } } } } } catch (IOException ex) { Console.Error.WriteLine("ERROR: Unable to parse holiday calendar data file: " + ex.Message); Console.WriteLine(ex.ToString()); Console.Write(ex.StackTrace); } MAP = builder.build(); }
} // end of marshal method new public void unmarshal(DataInputStream dis) { base.unmarshal(dis); try { _requestID = dis.readUint(); _requiredReliabilityService = dis.readByte(); _pad1 = dis.readUshort(); _pad2 = dis.readByte(); _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(); } } // end of unmarshal method
} // end of marshal method new public void unmarshal(DataInputStream dis) { base.unmarshal(dis); try { _objectID.unmarshal(dis); _referencedObjectID.unmarshal(dis); _updateNumber = dis.readUshort(); _forceID = dis.readByte(); _numberOfSegments = dis.readByte(); _requesterID.unmarshal(dis); _receivingID.unmarshal(dis); _objectType.unmarshal(dis); for (int idx = 0; idx < _numberOfSegments; idx++) { LinearSegmentParameter anX = new LinearSegmentParameter(); anX.unmarshal(dis); _linearSegmentParameters.Add(anX); } ; } // 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 { _objectID.unmarshal(dis); _referencedObjectID.unmarshal(dis); _updateNumber = dis.readUshort(); _forceID = dis.readByte(); _modifications = dis.readByte(); _objectType.unmarshal(dis); _objectAppearance.unmarshal(dis); _numberOfPoints = dis.readUshort(); _requesterID.unmarshal(dis); _receivingID.unmarshal(dis); for (int idx = 0; idx < _numberOfPoints; idx++) { Vector3Double anX = new Vector3Double(); anX.unmarshal(dis); _objectLocation.Add(anX); } ; } // 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 { _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(); } } // end of unmarshal method
public override void readPacketData(DataInputStream datainputstream) { base.readPacketData(datainputstream); xPosition = datainputstream.readByte(); yPosition = datainputstream.readByte(); zPosition = datainputstream.readByte(); }
} // end of marshal method new public void unmarshal(DataInputStream dis) { base.unmarshal(dis); try { _receivingEntityID.unmarshal(dis); _supplyingEntityID.unmarshal(dis); _numberOfSupplyTypes = dis.readByte(); _padding1 = dis.readShort(); _padding2 = dis.readByte(); 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(); } } // end of unmarshal method
} // end of marshal method new public 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(); } } // end of unmarshal method
} // 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
} // end of marshal method new public 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(); } } // end of unmarshal method
public override void readPacketData(DataInputStream datainputstream) { field_22041_a = datainputstream.readInt(); field_22042_e = datainputstream.readByte(); field_22040_b = datainputstream.readInt(); field_22044_c = datainputstream.readByte(); field_22043_d = datainputstream.readInt(); }
public override void readPacketData(DataInputStream datainputstream) { entityId = datainputstream.readInt(); type = datainputstream.readByte(); xPosition = datainputstream.readInt(); yPosition = datainputstream.readInt(); zPosition = datainputstream.readInt(); yaw = datainputstream.readByte(); pitch = datainputstream.readByte(); receivedMetadata = DataWatcher.readWatchableObjects(datainputstream); }
public override void readPacketData(DataInputStream datainputstream) { entityId = datainputstream.readInt(); name = datainputstream.readUTF(); xPosition = datainputstream.readInt(); yPosition = datainputstream.readInt(); zPosition = datainputstream.readInt(); rotation = datainputstream.readByte(); pitch = datainputstream.readByte(); currentItem = datainputstream.readShort(); }
public override void readPacketData(DataInputStream datainputstream) { entityId = datainputstream.readInt(); itemID = datainputstream.readShort(); count = datainputstream.readByte(); itemDamage = datainputstream.readShort(); xPosition = datainputstream.readInt(); yPosition = datainputstream.readInt(); zPosition = datainputstream.readInt(); rotation = datainputstream.readByte(); pitch = datainputstream.readByte(); roll = datainputstream.readByte(); }
public void setFontData(sbyte[] data) { if (data == null) { this.m_textDirection = 0; this.m_lineDirection = 0; this.m_leading = 0; this.m_ascent = 0; this.m_descent = 0; this.m_spaceSpace = 0; this.m_charSpace = 0; this.m_numChars = 0; this.m_numGlyphs = 0; this.m_utfCodeArray = new ushort[0]; this.m_charDataOffsetArray = new ushort[0]; this.m_charData = new sbyte[0]; this.m_ISOOffsetMap = new ushort[0]; } else { DataInputStream dataInputStream1 = new DataInputStream((InputStream) new ByteArrayInputStream(data, 12)); int num = (int)dataInputStream1.readByte(); this.m_textDirection = (int)dataInputStream1.readByte(); this.m_lineDirection = (int)dataInputStream1.readByte(); this.m_leading = (int)dataInputStream1.readByte(); this.m_ascent = (int)dataInputStream1.readByte(); this.m_descent = (int)dataInputStream1.readByte(); this.m_spaceSpace = (int)dataInputStream1.readByte(); this.m_charSpace = (int)dataInputStream1.readByte(); this.m_numChars = (int)dataInputStream1.readShort(); this.m_numGlyphs = (int)dataInputStream1.readShort(); dataInputStream1.close(); this.m_utfCodeArray = new ushort[this.m_numChars]; this.m_charDataOffsetArray = new ushort[this.m_numChars + 1]; this.m_charData = new sbyte[2 * this.m_numChars + 6 * this.m_numGlyphs]; int bufLength = 12 + (this.m_utfCodeArray.Length + this.m_charDataOffsetArray.Length) * 2 + this.m_charData.Length; DataInputStream dataInputStream2 = new DataInputStream((InputStream) new ByteArrayInputStream(data, bufLength)); dataInputStream2.skip(12L); for (int index = 0; index != this.m_numChars; ++index) { this.m_utfCodeArray[index] = (ushort)dataInputStream2.readShort(); } for (int index = 0; index != this.m_numChars; ++index) { this.m_charDataOffsetArray[index] = (ushort)dataInputStream2.readShort(); } this.m_charDataOffsetArray[this.m_numChars] = ushort.MaxValue; for (int index = 0; index != this.m_charData.Length; ++index) { this.m_charData[index] = dataInputStream2.readByte(); } dataInputStream2.close(); this.setTransform(this.m_transform); this.m_ISOOffsetMap = new ushort[256]; for (int index = 0; index != 128; ++index) { this.m_ISOOffsetMap[index] = (ushort)SDKTextUtils.getCodePos(this.m_utfCodeArray, (ushort)index, this.m_numChars); } } }
} // end of marshal method 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(); } } // end of unmarshal method
} // end of marshal method public void unmarshal(DataInputStream dis) { try { _trackJam.unmarshal(dis); _emitterID = dis.readByte(); _beamID = 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 { _acousticName = dis.readUshort(); _function = dis.readByte(); _acousticIdNumber = dis.readByte(); } // end try catch (Exception e) { Trace.WriteLine(e); Trace.Flush(); } } // end of unmarshal method
public static string readXMLtoBinString(DataInputStream dis) { int length = (int)dis.readByte(); if (length < 0) { return(""); } char[] chArray = new char[length]; for (int index = 0; index < length; ++index) { chArray[index] = (char)dis.readByte(); } return(new string(chArray)); }
} // end of marshal method 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(); } } // end of unmarshal method
} // end of marshal method public void unmarshal(DataInputStream dis) { try { _characterSet = dis.readByte(); for (int idx = 0; idx < _characters.Length; idx++) { _characters[idx] = dis.readByte(); } // end of array unmarshaling } // end try catch (Exception e) { Trace.WriteLine(e); Trace.Flush(); } } // end of unmarshal method
} // end of marshal method public void unmarshal(DataInputStream dis) { try { _parameterTypeDesignator = dis.readByte(); _changeIndicator = dis.readByte(); _partAttachedTo = dis.readUshort(); _parameterType = dis.readUint(); _parameterValue = dis.readDouble(); } // end try catch (Exception e) { Trace.WriteLine(e); Trace.Flush(); } } // end of unmarshal method
} // end of marshal method public void unmarshal(DataInputStream dis) { try { _entityKind = dis.readByte(); _domain = dis.readByte(); _country = dis.readUshort(); _category = dis.readByte(); _subcategory = dis.readByte(); } // end try catch (Exception e) { Trace.WriteLine(e); Trace.Flush(); } } // end of unmarshal method