Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
struct | buf_file_user |
struct | buf_file_priv |
Functions | |
static struct buf_file_priv * | get_priv_file (RzBuffer *b) |
static bool | buf_file_init (RzBuffer *b, const void *user) |
static bool | buf_file_fini (RzBuffer *b) |
static ut64 | buf_file_get_size (RzBuffer *b) |
static st64 | buf_file_read (RzBuffer *b, ut8 *buf, ut64 len) |
static st64 | buf_file_write (RzBuffer *b, const ut8 *buf, ut64 len) |
static st64 | buf_file_seek (RzBuffer *b, st64 addr, int whence) |
static bool | buf_file_resize (RzBuffer *b, ut64 newsize) |
Variables | |
static const RzBufferMethods | buffer_file_methods |
Definition at line 41 of file buf_file.c.
References b, close, buf_file_priv::fd, get_priv_file(), and RZ_FREE.
Definition at line 48 of file buf_file.c.
References b, buf_file_priv::fd, get_priv_file(), lseek, pos, SEEK_CUR, SEEK_END, SEEK_SET, and ut64().
Definition at line 24 of file buf_file.c.
References b, fd, buf_file_priv::fd, buf_file_user::file, free(), buf_file_user::mode, buf_file_user::perm, RZ_NEW0, and rz_sys_open().
Definition at line 56 of file buf_file.c.
References b, buf_file_priv::fd, get_priv_file(), len, and read().
Definition at line 76 of file buf_file.c.
References b, buf_file_priv::fd, get_priv_file(), and rz_sys_truncate_fd().
Definition at line 66 of file buf_file.c.
References addr, b, buf_file_priv::fd, get_priv_file(), lseek, RZ_BUF_CUR, RZ_BUF_END, RZ_BUF_SET, SEEK_CUR, SEEK_END, and SEEK_SET.
Definition at line 61 of file buf_file.c.
References b, buf_file_priv::fd, get_priv_file(), len, and write.
|
inlinestatic |
Definition at line 18 of file buf_file.c.
References b, and rz_warn_if_fail.
Referenced by buf_file_fini(), buf_file_get_size(), buf_file_read(), buf_file_resize(), buf_file_seek(), and buf_file_write().
|
static |
Definition at line 81 of file buf_file.c.
Referenced by new_buffer().