private void handleReturnIfNoMoreBytes(final CodeAttribute c, final CodeLocation returnCode) { c.aload(BYTE_BUFFER_VAR); c.invokevirtual(ByteBuffer.class.getName(), "hasRemaining", "()Z"); c.ifEq(returnCode); //go back to the start if we have not run out of bytes }