Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_util.h>
Go to the source code of this file.
Classes | |
struct | buf_ref_user |
struct | buf_ref_priv |
Functions | |
static struct buf_ref_priv * | get_priv_ref (RzBuffer *b) |
static bool | buf_ref_init (RzBuffer *b, const void *user) |
static bool | buf_ref_fini (RzBuffer *b) |
static bool | buf_ref_resize (RzBuffer *b, ut64 newsize) |
static st64 | buf_ref_read (RzBuffer *b, ut8 *buf, ut64 len) |
static ut64 | buf_ref_get_size (RzBuffer *b) |
static st64 | buf_ref_seek (RzBuffer *b, st64 addr, int whence) |
Variables | |
static const RzBufferMethods | buffer_ref_methods |
Definition at line 44 of file buf_ref.c.
References b, get_priv_ref(), buf_ref_priv::parent, rz_buf_free(), and RZ_FREE.
Definition at line 25 of file buf_ref.c.
References b, buf_ref_priv::base, buf_ref_user::offset, buf_ref_user::parent, buf_ref_priv::parent, rz_buf_ref(), rz_buf_size(), RZ_MIN, RZ_NEW0, buf_ref_user::size, buf_ref_priv::size, and ut64().
Definition at line 58 of file buf_ref.c.
References b, buf_ref_priv::base, buf_ref_priv::cur, get_priv_ref(), len, buf_ref_priv::parent, r, rz_buf_read_at(), RZ_MIN, buf_ref_priv::size, and st64.
Definition at line 51 of file buf_ref.c.
References b, buf_ref_priv::base, get_priv_ref(), buf_ref_priv::parent, rz_buf_size(), RZ_MIN, buf_ref_priv::size, and ut64().
Definition at line 77 of file buf_ref.c.
References addr, b, buf_ref_priv::cur, get_priv_ref(), RZ_BUF_CUR, RZ_BUF_END, RZ_BUF_SET, rz_warn_if_reached, and buf_ref_priv::size.
|
inlinestatic |
Definition at line 19 of file buf_ref.c.
References b, and rz_warn_if_fail.
Referenced by buf_ref_fini(), buf_ref_get_size(), buf_ref_read(), buf_ref_resize(), and buf_ref_seek().
|
static |
Definition at line 96 of file buf_ref.c.
Referenced by new_buffer().