Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_util.h>
Go to the source code of this file.
Classes | |
struct | buf_bytes_user |
struct | buf_bytes_priv |
Functions | |
static struct buf_bytes_priv * | get_priv_bytes (RzBuffer *b) |
static bool | buf_bytes_init (RzBuffer *b, const void *user) |
static bool | buf_bytes_fini (RzBuffer *b) |
static bool | buf_bytes_resize (RzBuffer *b, ut64 newsize) |
static st64 | buf_bytes_read (RzBuffer *b, ut8 *buf, ut64 len) |
static st64 | buf_bytes_write (RzBuffer *b, const ut8 *buf, ut64 len) |
static ut64 | buf_bytes_get_size (RzBuffer *b) |
static st64 | buf_bytes_seek (RzBuffer *b, st64 addr, int whence) |
static ut8 * | buf_bytes_get_whole_buf (RzBuffer *b, ut64 *sz) |
Variables | |
static const RzBufferMethods | buffer_bytes_methods |
Definition at line 53 of file buf_bytes.c.
References b, buf_bytes_priv::buf, free(), get_priv_bytes(), buf_bytes_priv::is_bufowner, and RZ_FREE.
Definition at line 97 of file buf_bytes.c.
References b, get_priv_bytes(), and buf_bytes_priv::length.
Definition at line 110 of file buf_bytes.c.
References b, buf_bytes_priv::buf, get_priv_bytes(), and buf_bytes_priv::length.
Definition at line 26 of file buf_bytes.c.
References b, buf_bytes_priv::buf, buf_bytes_user::data, buf_bytes_user::data_steal, free(), buf_bytes_priv::is_bufowner, buf_bytes_user::length, buf_bytes_priv::length, malloc(), buf_bytes_priv::offset, RZ_NEW0, and buf_bytes_user::steal.
Definition at line 76 of file buf_bytes.c.
References b, buf_bytes_priv::buf, get_priv_bytes(), len, buf_bytes_priv::length, buf_bytes_priv::offset, RZ_MIN, and ut64().
Definition at line 62 of file buf_bytes.c.
References b, buf_bytes_priv::buf, get_priv_bytes(), buf_bytes_priv::length, memset(), and realloc().
Definition at line 102 of file buf_bytes.c.
References addr, b, get_priv_bytes(), buf_bytes_priv::length, buf_bytes_priv::offset, rz_seek_offset(), and st64.
Definition at line 84 of file buf_bytes.c.
References b, buf_bytes_priv::buf, get_priv_bytes(), len, buf_bytes_priv::length, buf_bytes_priv::offset, r, and rz_buf_resize().
|
inlinestatic |
Definition at line 20 of file buf_bytes.c.
References b, and rz_warn_if_fail.
Referenced by buf_bytes_fini(), buf_bytes_get_size(), buf_bytes_get_whole_buf(), buf_bytes_read(), buf_bytes_resize(), buf_bytes_seek(), and buf_bytes_write().
|
static |
Definition at line 118 of file buf_bytes.c.
Referenced by new_buffer().