/** * Convert the arguments into a byte array. Used internally. * * @param stream OscPacketByteArrayConverter */ protected void computeArgumentsByteArray(OSCJavaToByteArrayConverter stream) { stream.write(','); if (null == arguments) return; stream.writeTypes(arguments); Enumeration enume = arguments.elements(); while (enume.hasMoreElements()) { stream.write(enume.nextElement()); } }
/** * Convert the message into a byte array. Used internally. * * @param stream OscPacketByteArrayConverter */ protected void computeByteArray(OSCJavaToByteArrayConverter stream) { computeAddressByteArray(stream); computeArgumentsByteArray(stream); byteArray = stream.toByteArray(); }
/** * Convert the address into a byte array. Used internally. * * @param stream OscPacketByteArrayConverter */ protected void computeAddressByteArray(OSCJavaToByteArrayConverter stream) { stream.write(address); }