Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_core.h>
Go to the source code of this file.
Classes | |
struct | VFileCtx |
Macros | |
#define | URI_SCHEME "vfile://" |
#define | URI_SCHEME_LEN 8 |
Functions | |
static bool | vf_check (RzIO *io, const char *pathname, bool many) |
static RzBinVirtualFile * | find_vfile (RzBinFile *bf, const char *name) |
static RzIODesc * | vf_open (RzIO *io, const char *pathname, int rw, int mode) |
static int | vf_write (RzIO *io, RzIODesc *fd, const ut8 *buf, int count) |
static int | vf_read (RzIO *io, RzIODesc *fd, ut8 *buf, int count) |
static int | vf_close (RzIODesc *fd) |
static ut64 | vf_lseek (struct rz_io_t *io, RzIODesc *fd, ut64 offset, int whence) |
static bool | vf_resize (RzIO *io, RzIODesc *fd, ut64 size) |
RZ_IPI void | rz_core_vfile_bin_file_deleted (RzCore *core, RzBinFile *bf) |
Variables | |
RzIOPlugin | rz_core_io_plugin_vfile |
IO Plugin that opens RzBinVirtualFiles supplied by the plugin of an RzBinFile. More... | |
RZ_API RzLibStruct | rizin_plugin |
|
static |
Definition at line 22 of file cvfile.c.
References rz_bin_virtual_file_t::name, NULL, rz_bin_file_t::o, and rz_bin_object_t::vfiles.
Referenced by vf_open().
Definition at line 156 of file cvfile.c.
References desc, rz_io_t::files, rz_core_t::io, rz_io_plugin_t::name, rz_core_io_plugin_vfile, rz_id_storage_list(), rz_io_desc_close(), and rz_list_free().
Referenced by ev_binfiledel_cb().
Definition at line 17 of file cvfile.c.
References pathname, URI_SCHEME, and URI_SCHEME_LEN.
Referenced by vf_open().
Definition at line 102 of file cvfile.c.
References fd, rz_buf_size(), rz_return_val_if_fail, SEEK_CUR, SEEK_END, SEEK_SET, and UT64_MAX.
Definition at line 36 of file cvfile.c.
References rz_core_t::bin, rz_core_bind_t::core, rz_io_t::corebind, desc, find_vfile(), free(), NULL, pathname, PFMT32u, rz_bin_file_find_by_id(), rz_core_io_plugin_vfile, rz_io_desc_new(), RZ_LOG_ERROR, RZ_NEW, strdup(), URI_SCHEME, URI_SCHEME_LEN, and vf_check().
Definition at line 88 of file cvfile.c.
References count, fd, rz_buf_read_at(), and rz_return_val_if_fail.
Definition at line 121 of file cvfile.c.
References fd, rz_buf_resize(), and rz_return_val_if_fail.
Definition at line 79 of file cvfile.c.
References count, fd, rz_buf_write_at(), RZ_PERM_W, and rz_return_val_if_fail.
RZ_API RzLibStruct rizin_plugin |
RZ_IPI RzIOPlugin rz_core_io_plugin_vfile |
IO Plugin that opens RzBinVirtualFiles supplied by the plugin of an RzBinFile.
URIs look like vfile://1/decompressed_data_0
where 1
is the id of a loaded RzBinFile and decompressed_data_0
is the name of the RzBinVirtualFile inside this RzBinFile that provides the data.
Definition at line 134 of file cvfile.c.
Referenced by rz_core_init(), rz_core_vfile_bin_file_deleted(), and vf_open().