Rizin
unix-like reverse engineering framework and cli tools
jvm.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: 2021 deroad <wargio@libero.it>
2 // SPDX-License-Identifier: LGPL-3.0-only
3 
4 #ifndef RZ_ASM_JAVA_JVM_H
5 #define RZ_ASM_JAVA_JVM_H
6 #include <rz_types.h>
7 #include <rz_util.h>
8 #include "bytecode.h"
9 
10 typedef struct jvm_t {
11  const ut8 *buffer;
17 
18 void bytecode_snprint(RzStrBuf *sb, Bytecode *bytecode);
19 void bytecode_clean(Bytecode *bytecode);
20 bool jvm_init(JavaVM *jvm, const ut8 *buffer, const ut32 size, ut64 pc, ut64 section);
21 bool jvm_fetch(JavaVM *jvm, Bytecode *bytecode);
22 
23 #endif /* RZ_ASM_JAVA_JVM_H */
static SblHeader sb
Definition: bin_mbn.c:26
uint32_t ut32
voidpf void uLong size
Definition: ioapi.h:138
bool jvm_fetch(JavaVM *jvm, Bytecode *bytecode)
Definition: jvm.c:1553
bool jvm_init(JavaVM *jvm, const ut8 *buffer, const ut32 size, ut64 pc, ut64 section)
Definition: jvm.c:1541
void bytecode_clean(Bytecode *bytecode)
Definition: jvm.c:1536
void bytecode_snprint(RzStrBuf *sb, Bytecode *bytecode)
Definition: jvm.c:1458
struct jvm_t JavaVM
uint8_t ut8
Definition: lh5801.h:11
Definition: buffer.h:15
Definition: jvm.h:10
const ut8 * buffer
Definition: jvm.h:11
ut64 pc
Definition: jvm.h:14
ut64 section
Definition: jvm.h:15
ut32 current
Definition: jvm.h:13
ut32 size
Definition: jvm.h:12
ut64(WINAPI *w32_GetEnabledXStateFeatures)()