7 #include "../io_memory.h"
10 return (!strncmp(
pathname,
"malloc://", 9)) || (!strncmp(
pathname,
"hex://", 6));
19 if (!strncmp(
pathname,
"hex://", 6)) {
28 if ((
int)
mal->size < 1) {
33 if (((
int)
mal->size) <= 0) {
52 .desc =
"Memory allocation plugin",
53 .uris =
"malloc://,hex://",
64 #ifndef RZ_PLUGIN_INCORE
RZ_API void Ht_() free(HtName_(Ht) *ht)
static bool __check(RzIO *io, const char *pathname, bool many)
static RzIODesc * __open(RzIO *io, const char *pathname, int rw, int mode)
RZ_API RzLibStruct rizin_plugin
RzIOPlugin rz_io_plugin_malloc
bool io_memory_resize(RzIO *io, RzIODesc *fd, ut64 count)
int io_memory_read(RzIO *io, RzIODesc *fd, ut8 *buf, int count)
int io_memory_write(RzIO *io, RzIODesc *fd, const ut8 *buf, int count)
ut64 io_memory_lseek(RzIO *io, RzIODesc *fd, ut64 offset, int whence)
int io_memory_close(RzIODesc *fd)
void * calloc(size_t number, size_t size)
static static fork const void static count static fd const char const char static newpath char char char static envp time_t static t const char static mode static whence const char static dir time_t static t unsigned static seconds const char struct utimbuf static buf static inc static sig const char pathname
RZ_API int rz_hex_str2bin(const char *in, ut8 *out)
Convert an input string in into the binary form in out.
RZ_API RzIODesc * rz_io_desc_new(RzIO *io, RzIOPlugin *plugin, const char *uri, int flags, int mode, void *data)
RZ_API ut64 rz_num_math(RzNum *num, const char *str)