Rizin
unix-like reverse engineering framework and cli tools
private.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: 2018 ret2libc <sirmy15@gmail.com>
2 // SPDX-License-Identifier: LGPL-3.0-only
3 
4 #ifndef RZ_BIN_PRIVATE_H_
5 #define RZ_BIN_PRIVATE_H_
6 
7 #include <rz_bin.h>
8 #include <rz_util.h>
9 #include <rz_types.h>
10 
11 RZ_IPI RzBinFile *rz_bin_file_new(RzBin *bin, const char *file, ut64 file_sz, int fd, const char *xtrname, bool steal_ptr);
15 RZ_IPI RzBinFile *rz_bin_file_xtr_load_bytes(RzBin *bin, RzBinXtrPlugin *xtr, const char *filename, const ut8 *bytes, ut64 sz, ut64 file_sz, ut64 baseaddr, ut64 loadaddr, int idx, int fd);
16 RZ_IPI bool rz_bin_file_set_bytes(RzBinFile *binfile, const ut8 *bytes, ut64 sz, bool steal_ptr);
17 
23 
28 RZ_IPI RzBinObject *rz_bin_object_find_by_arch_bits(RzBinFile *binfile, const char *arch, int bits, const char *name);
29 
31 RZ_IPI RzBinSymbol *rz_bin_class_add_method(RzBinFile *binfile, const char *classname, const char *name, int nargs);
32 RZ_IPI void rz_bin_class_add_field(RzBinFile *binfile, const char *classname, const char *name);
33 
35 RZ_IPI RzBinFile *rz_bin_file_new_from_buffer(RzBin *bin, const char *file, RzBuffer *buf, RzBinObjectLoadOptions *opts, int fd, const char *pluginname);
36 
38  RzList /*<RzBinString *>*/ *list;
39  HtUP /*<ut64, RzBinString*>*/ *phys;
40  HtUP /*<ut64, RzBinString*>*/ *virt;
41 };
42 
43 #endif
#define RZ_IPI
Definition: analysis_wasm.c:11
static ut8 bytes[32]
Definition: asm_arc.c:23
int bits(struct state *s, int need)
Definition: blast.c:72
cs_arch arch
Definition: cstool.c:13
uint32_t ut32
const char * filename
Definition: ioapi.h:137
voidpf uLong offset
Definition: ioapi.h:144
voidpf void * buf
Definition: ioapi.h:138
uint8_t ut8
Definition: lh5801.h:11
RZ_IPI void rz_bin_class_add_field(RzBinFile *binfile, const char *classname, const char *name)
RZ_IPI RzBinPlugin * rz_bin_get_binplugin_any(RzBin *bin)
RZ_IPI RzBinFile * rz_bin_file_new_from_buffer(RzBin *bin, const char *file, RzBuffer *buf, RzBinObjectLoadOptions *opts, int fd, const char *pluginname)
Definition: bfile.c:139
RZ_IPI RzBinFile * rz_bin_file_find_by_object_id(RzBin *bin, ut32 binobj_id)
RZ_IPI bool rz_bin_file_set_obj(RzBin *bin, RzBinFile *bf, RzBinObject *obj)
Definition: bfile.c:263
RZ_IPI RzBinFile * rz_bin_file_xtr_load_bytes(RzBin *bin, RzBinXtrPlugin *xtr, const char *filename, const ut8 *bytes, ut64 sz, ut64 file_sz, ut64 baseaddr, ut64 loadaddr, int idx, int fd)
RZ_IPI ut64 rz_bin_object_get_baddr(RzBinObject *o)
RZ_IPI RzBinPlugin * rz_bin_get_binplugin_by_name(RzBin *bin, const char *name)
Definition: bin.c:335
RZ_IPI RzBinPlugin * rz_bin_get_binplugin_by_filename(RzBin *bin)
Definition: bin.c:365
RZ_IPI void rz_bin_class_free(RzBinClass *c)
Definition: bfile.c:512
RZ_IPI RzBinObject * rz_bin_object_get_cur(RzBin *bin)
Definition: bobj.c:639
RZ_IPI RzBinObject * rz_bin_object_new(RzBinFile *binfile, RzBinPlugin *plugin, RzBinObjectLoadOptions *opts, ut64 offset, ut64 sz)
Definition: bobj.c:278
RZ_IPI RzBinSymbol * rz_bin_class_add_method(RzBinFile *binfile, const char *classname, const char *name, int nargs)
RZ_IPI RzBinFile * rz_bin_file_new(RzBin *bin, const char *file, ut64 file_sz, int fd, const char *xtrname, bool steal_ptr)
Definition: bfile.c:22
RZ_IPI RZ_OWN char * rz_bin_file_golang_compiler(RZ_NONNULL RzBinFile *binfile)
Returns the golang compiler info if buildinfo struct is found.
Definition: golang.c:265
RZ_IPI void rz_bin_object_free(RzBinObject *o)
Definition: bobj.c:188
RZ_IPI RzBinFile * rz_bin_file_xtr_load_buffer(RzBin *bin, RzBinXtrPlugin *xtr, const char *filename, RzBuffer *buf, RzBinObjectLoadOptions *obj_opts, int idx, int fd)
Definition: bfile.c:299
RZ_IPI RzBinObject * rz_bin_file_object_find_by_id(RzBinFile *binfile, ut32 binobj_id)
RZ_IPI bool rz_bin_file_set_bytes(RzBinFile *binfile, const ut8 *bytes, ut64 sz, bool steal_ptr)
Definition: bfile.c:337
RZ_IPI RzBinXtrPlugin * rz_bin_get_xtrplugin_by_name(RzBin *bin, const char *name)
Definition: bin.c:383
RZ_IPI RzBinObject * rz_bin_object_find_by_arch_bits(RzBinFile *binfile, const char *arch, int bits, const char *name)
Definition: bobj.c:644
int idx
Definition: setup.py:197
#define RZ_OWN
Definition: rz_types.h:62
#define RZ_NONNULL
Definition: rz_types.h:64
#define c(i)
Definition: sha256.c:43
Definition: malloc.c:26
Definition: gzappend.c:170
Definition: z80asm.h:102
XX curplugin == o->plugin.
Definition: rz_bin.h:298
RzList * list
Contains all the strings in list form.
Definition: private.h:38
HtUP * virt
Contains all the strings but mapped by virtual address.
Definition: private.h:40
HtUP * phys
Contains all the strings but mapped by physical address.
Definition: private.h:39
ut64(WINAPI *w32_GetEnabledXStateFeatures)()
static const z80_opcode fd[]
Definition: z80_tab.h:997
static int baseaddr
Definition: z80asm.c:79