Rizin
unix-like reverse engineering framework and cli tools
|
#include "rz_io.h"
#include "rz_lib.h"
#include "rz_util.h"
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
Go to the source code of this file.
Classes | |
struct | RzIOSparse |
Macros | |
#define | RzIOSPARSE_FD(x) (((RzIOSparse *)(x)->data)->fd) |
#define | RzIOSPARSE_BUF(x) (((RzIOSparse *)(x)->data)->buf) |
#define | RzIOSPARSE_OFF(x) (((RzIOSparse *)(x)->data)->offset) |
Functions | |
static int | __write (RzIO *io, RzIODesc *fd, const ut8 *buf, int count) |
static int | __read (RzIO *io, RzIODesc *fd, ut8 *buf, int count) |
static int | __close (RzIODesc *fd) |
static ut64 | __lseek (RzIO *io, RzIODesc *fd, ut64 offset, int whence) |
static bool | __plugin_open (struct rz_io_t *io, const char *pathname, bool many) |
static RzIODesc * | __open (RzIO *io, const char *pathname, int rw, int mode) |
Variables | |
RzIOPlugin | rz_io_plugin_sparse |
RZ_API RzLibStruct | rizin_plugin |
#define RzIOSPARSE_BUF | ( | x | ) | (((RzIOSparse *)(x)->data)->buf) |
Definition at line 18 of file io_sparse.c.
#define RzIOSPARSE_FD | ( | x | ) | (((RzIOSparse *)(x)->data)->fd) |
Definition at line 17 of file io_sparse.c.
#define RzIOSPARSE_OFF | ( | x | ) | (((RzIOSparse *)(x)->data)->offset) |
Definition at line 19 of file io_sparse.c.
Definition at line 51 of file io_sparse.c.
References RzIOSparse::buf, fd, and RZ_FREE.
Definition at line 62 of file io_sparse.c.
References b, fd, rz_buf_seek(), RzIOSPARSE_BUF, RzIOSPARSE_OFF, and ut64().
Definition at line 79 of file io_sparse.c.
References __plugin_open(), eprintf, free(), int, mal, malloc(), memset(), NULL, rz_io_t::Oxff, pathname, rz_buf_free(), rz_buf_new_sparse(), rz_buf_write_at(), rz_io_desc_new(), rz_io_plugin_sparse, RZ_NEW0, and rz_num_math().
Definition at line 36 of file io_sparse.c.
References b, count, fd, r, RZ_BUF_CUR, rz_buf_read_at(), rz_buf_seek(), RzIOSPARSE_BUF, RzIOSPARSE_OFF, and ut64().
Definition at line 21 of file io_sparse.c.
References b, count, fd, r, RZ_BUF_CUR, rz_buf_seek(), rz_buf_write_at(), RzIOSPARSE_BUF, RzIOSPARSE_OFF, and ut64().
RZ_API RzLibStruct rizin_plugin |
Definition at line 125 of file io_sparse.c.
RzIOPlugin rz_io_plugin_sparse |
Definition at line 110 of file io_sparse.c.
Referenced by __open().