public override void writePacketData(DataOutputStream dataoutputstream) { dataoutputstream.writeDouble(xPosition); dataoutputstream.writeDouble(yPosition); dataoutputstream.writeDouble(stance); dataoutputstream.writeDouble(zPosition); base.writePacketData(dataoutputstream); }
///<summary> ///Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method ///</summary> public void marshal(DataOutputStream dos) { try { dos.writeDouble((double)_x); dos.writeDouble((double)_y); dos.writeDouble((double)_z); } // end try catch (Exception e) { Trace.WriteLine(e); Trace.Flush(); } } // end of marshal method
///<summary> ///Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method ///</summary> new public void marshal(DataOutputStream dos) { base.marshal(dos); try { _groupEntityID.marshal(dos); dos.writeByte((byte)_groupedEntityCategory); dos.writeByte((byte)_groupedEntityDescriptions.Count); dos.writeUint((uint)_pad2); dos.writeDouble((double)_latitude); dos.writeDouble((double)_longitude); for (int idx = 0; idx < _groupedEntityDescriptions.Count; idx++) { VariableDatum aVariableDatum = (VariableDatum)_groupedEntityDescriptions[idx]; aVariableDatum.marshal(dos); } // end of list marshalling } // end try catch (Exception e) { Trace.WriteLine(e); Trace.Flush(); } } // end of marshal method
public override void writePacketData(DataOutputStream dataoutputstream) { dataoutputstream.writeDouble(explosionX); dataoutputstream.writeDouble(explosionY); dataoutputstream.writeDouble(explosionZ); dataoutputstream.writeFloat(explosionSize); dataoutputstream.writeInt(destroyedBlockPositions.size()); var i = (int)explosionX; var j = (int)explosionY; var k = (int)explosionZ; int j1; for (Iterator iterator = destroyedBlockPositions.iterator(); iterator.hasNext(); dataoutputstream.writeByte(j1)) { var chunkposition = (ChunkPosition)iterator.next(); int l = chunkposition.x - i; int i1 = chunkposition.y - j; j1 = chunkposition.z - k; dataoutputstream.writeByte(l); dataoutputstream.writeByte(i1); } }
///<summary> ///Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method ///</summary> public void marshal(DataOutputStream dos) { try { dos.writeByte((byte)_parameterTypeDesignator); dos.writeByte((byte)_changeIndicator); dos.writeUshort((ushort)_partAttachedTo); dos.writeUint((uint)_parameterType); dos.writeDouble((double)_parameterValue); } // end try catch (Exception e) { Trace.WriteLine(e); Trace.Flush(); } } // end of marshal method
///<summary> ///Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method ///</summary> new public void marshal(DataOutputStream dos) { base.marshal(dos); try { _objectID.marshal(dos); _referencedObjectID.marshal(dos); dos.writeUshort((ushort)_updateNumber); dos.writeByte((byte)_forceID); dos.writeByte((byte)_modifications); _objectType.marshal(dos); _objectLocation.marshal(dos); _objectOrientation.marshal(dos); dos.writeDouble((double)_objectAppearance); _requesterID.marshal(dos); _receivingID.marshal(dos); dos.writeUint((uint)_pad2); } // end try catch (Exception e) { Trace.WriteLine(e); Trace.Flush(); } } // end of marshal method
///<summary> ///Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method ///</summary> new public void marshal(DataOutputStream dos) { base.marshal(dos); try { dos.writeUshort((ushort)_site); dos.writeUshort((ushort)_application); dos.writeUshort((ushort)_entity); dos.writeByte((byte)_forceId); dos.writeByte((byte)_articulationParameters.Count); dos.writeByte((byte)_entityKind); dos.writeByte((byte)_domain); dos.writeUshort((ushort)_country); dos.writeByte((byte)_category); dos.writeByte((byte)_subcategory); dos.writeByte((byte)_specific); dos.writeByte((byte)_extra); dos.writeByte((byte)_altEntityKind); dos.writeByte((byte)_altDomain); dos.writeUshort((ushort)_altCountry); dos.writeByte((byte)_altCategory); dos.writeByte((byte)_altSubcategory); dos.writeByte((byte)_altSpecific); dos.writeByte((byte)_altExtra); dos.writeFloat((float)_xVelocity); dos.writeFloat((float)_yVelocity); dos.writeFloat((float)_zVelocity); dos.writeDouble((double)_xLocation); dos.writeDouble((double)_yLocation); dos.writeDouble((double)_zLocation); dos.writeFloat((float)_psi); dos.writeFloat((float)_theta); dos.writeFloat((float)_phi); dos.writeUint((uint)_entityAppearance); dos.writeByte((byte)_deadReckoningAlgorithm); for (int idx = 0; idx < _otherParameters.Length; idx++) { dos.writeByte(_otherParameters[idx]); } // end of array marshaling dos.writeFloat((float)_xAcceleration); dos.writeFloat((float)_yAcceleration); dos.writeFloat((float)_zAcceleration); dos.writeFloat((float)_xAngularVelocity); dos.writeFloat((float)_yAngularVelocity); dos.writeFloat((float)_zAngularVelocity); for (int idx = 0; idx < _marking.Length; idx++) { dos.writeByte(_marking[idx]); } // end of array marshaling dos.writeUint((uint)_capabilities); for (int idx = 0; idx < _articulationParameters.Count; idx++) { ArticulationParameter aArticulationParameter = (ArticulationParameter)_articulationParameters[idx]; aArticulationParameter.marshal(dos); } // end of list marshalling } // end try catch (Exception e) { Trace.WriteLine(e); Trace.Flush(); } } // end of marshal method
public override void writeDouble(double d) { output.writeDouble(d); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public org.neo4j.storageengine.api.WritableChannel putDouble(double value) throws java.io.IOException public override WritableChannel PutDouble(double value) { _dataOutputStream.writeDouble(value); return(this); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public PackOutput writeDouble(double value) throws java.io.IOException public override PackOutput WriteDouble(double value) { Data.writeDouble(value); return(this); }