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
;
12
ut32
size
;
13
ut32
current
;
14
ut64
pc
;
15
ut64
section
;
16
}
JavaVM
;
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 */
pc
pc
Definition:
arm-arithmetic-aliases.s.cs:50
sb
static SblHeader sb
Definition:
bin_mbn.c:26
bytecode.h
ut32
uint32_t ut32
Definition:
demangler_util.h:31
size
voidpf void uLong size
Definition:
ioapi.h:138
jvm_fetch
bool jvm_fetch(JavaVM *jvm, Bytecode *bytecode)
Definition:
jvm.c:1553
jvm_init
bool jvm_init(JavaVM *jvm, const ut8 *buffer, const ut32 size, ut64 pc, ut64 section)
Definition:
jvm.c:1541
bytecode_clean
void bytecode_clean(Bytecode *bytecode)
Definition:
jvm.c:1536
bytecode_snprint
void bytecode_snprint(RzStrBuf *sb, Bytecode *bytecode)
Definition:
jvm.c:1458
JavaVM
struct jvm_t JavaVM
ut8
uint8_t ut8
Definition:
lh5801.h:11
rz_types.h
rz_util.h
RzStrBuf
Definition:
rz_strbuf.h:10
buffer
Definition:
buffer.h:15
bytecode_t
Definition:
bytecode.h:234
jvm_t
Definition:
jvm.h:10
jvm_t::buffer
const ut8 * buffer
Definition:
jvm.h:11
jvm_t::pc
ut64 pc
Definition:
jvm.h:14
jvm_t::section
ut64 section
Definition:
jvm.h:15
jvm_t::current
ut32 current
Definition:
jvm.h:13
jvm_t::size
ut32 size
Definition:
jvm.h:12
section
Definition:
mach0_defines.h:645
ut64
ut64(WINAPI *w32_GetEnabledXStateFeatures)()
librz
asm
arch
java
jvm.h
Generated by
1.9.1