/** * Prepares the object to create a response of the given length. * * @param maxlength * the maximum length of the response to prepare, not * including the type and the signature (which this method * adds). */ protected void prepareResponse(final int maxlength, final int messageType) { messageContents = new byte[maxlength]; currentOutputPosition = 0; addBytes(SIGNATURE); addULong(messageType); }
/** * Prepares the object to create a response of the given length. * * @param maxlength * the maximum length of the response to prepare, not * including the type and the signature (which this method * adds). */ protected void prepareResponse(final int maxlength, final int messageType) { messageContents = new byte[maxlength]; currentOutputPosition = 0; addBytes(SIGNATURE); addULong(messageType); }