Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Functions | |
static void | cache_item_free (RzIOCache *cache) |
RZ_API bool | rz_io_cache_at (RzIO *io, ut64 addr) |
RZ_API void | rz_io_cache_init (RzIO *io) |
RZ_API void | rz_io_cache_fini (RzIO *io) |
RZ_API void | rz_io_cache_commit (RzIO *io, ut64 from, ut64 to) |
RZ_API void | rz_io_cache_reset (RzIO *io, int set) |
RZ_API int | rz_io_cache_invalidate (RzIO *io, ut64 from, ut64 to) |
RZ_API bool | rz_io_cache_write (RzIO *io, ut64 addr, const ut8 *buf, int len) |
RZ_API bool | rz_io_cache_read (RzIO *io, ut64 addr, ut8 *buf, int len) |
|
static |
Definition at line 7 of file io_cache.c.
References rz_io_cache_t::data, free(), and rz_io_cache_t::odata.
Referenced by rz_io_cache_init().
Definition at line 16 of file io_cache.c.
References addr, rz_io_t::cache_skyline, rz_return_val_if_fail, and rz_skyline_contains().
Referenced by rz_io_desc_read().
Definition at line 35 of file io_cache.c.
References c, rz_io_t::cache, rz_io_t::cached, eprintf, from, PFMT64x, capstone::range, rz_io_write_at(), rz_itv_begin(), rz_itv_overlap(), rz_itv_size(), rz_pvector_foreach, rz_return_if_fail, and to.
Referenced by rz_write_cache_commit_all_handler(), and rz_write_cache_commit_handler().
Definition at line 28 of file io_cache.c.
References rz_io_t::cache, rz_io_t::cache_skyline, rz_io_t::cached, rz_pvector_fini(), rz_return_if_fail, and rz_skyline_fini().
Referenced by rz_core_disasm_pde(), rz_io_close_all(), and rz_io_fini().
Definition at line 21 of file io_cache.c.
References rz_io_t::cache, cache_item_free(), rz_io_t::cache_skyline, rz_io_t::cached, rz_pvector_init(), rz_return_if_fail, and rz_skyline_init().
Referenced by rz_core_disasm_pde(), and rz_io_init().
Definition at line 64 of file io_cache.c.
References c, rz_io_t::cache, rz_io_t::cache_skyline, rz_io_t::cached, free(), from, capstone::range, rz_io_write_at(), rz_itv_begin(), rz_itv_overlap(), rz_itv_size(), rz_pvector_foreach, rz_pvector_foreach_prev, rz_pvector_remove_data(), rz_return_val_if_fail, rz_skyline_add(), rz_skyline_clear(), and to.
Referenced by rz_write_cache_remove_handler().
Definition at line 131 of file io_cache.c.
References rz_vector_t::a, addr, rz_io_t::cache_skyline, rz_io_cache_t::data, rz_io_cache_t::itv, len, rz_vector_t::len, memcpy(), read(), rz_io_cache_read(), rz_itv_begin(), rz_itv_size(), RZ_MIN, rz_return_val_if_fail, rz_skyline_get_item_intersect(), st64, ut64(), UT64_ADD_OVFCHK, UT64_MAX, rz_skyline_t::v, and while().
Referenced by rz_io_cache_read(), rz_io_desc_read(), rz_io_nread_at(), rz_io_read_at(), and rz_io_read_at_mapped().
Definition at line 57 of file io_cache.c.
References rz_io_t::cache, rz_io_t::cache_skyline, rz_io_t::cached, rz_pvector_clear(), rz_return_if_fail, and rz_skyline_clear().
Referenced by rz_core_link_stroff(), and rz_write_cache_remove_all_handler().
Definition at line 93 of file io_cache.c.
References addr, rz_io_t::cache, rz_io_t::cache_skyline, rz_io_t::cachemode, calloc(), rz_io_cache_t::data, rz_io_t::event, free(), rz_io_cache_t::itv, len, memcpy(), rz_io_cache_t::odata, RZ_EVENT_IO_WRITE, rz_event_send(), rz_io_cache_write(), rz_io_read_at(), RZ_NEW0, rz_pvector_push(), rz_return_val_if_fail, rz_skyline_add(), ut64(), UT64_ADD_OVFCHK, UT64_MAX, and rz_io_cache_t::written.
Referenced by rz_io_cache_write(), rz_io_desc_read(), and rz_io_write_at().