radare2/shlr/java/code.h

23 lines
661 B
C
Raw Normal View History

#ifndef _INCLUDE_R_JAVA_H_
#define _INCLUDE_R_JAVA_H_
#include <r_types.h>
#include "class.h"
typedef struct java_op {
const char *name;
unsigned char byte;
int size;
ut64 op_type;
} JavaOp;
2014-05-12 02:06:40 +00:00
#define JAVA_OPS_COUNT 297
2016-02-28 21:39:44 +00:00
extern struct java_op JAVA_OPS[JAVA_OPS_COUNT];
2017-05-16 18:14:39 +00:00
R_API int java_print_opcode(RBinJavaObj *obj, ut64 addr, int idx, const ut8 *bytes, int len, char *output, int outlen);
R_API int r_java_disasm(RBinJavaObj *obj, ut64 addr, const ut8 *bytes, int len, char *output, int outlen);
R_API int r_java_assemble(ut64 addr, ut8 *bytes, const char *string);
//R_API void r_java_set_obj(RBinJavaObj *obj);
R_API void r_java_new_method(void);
#endif