19 if ((null->offset +
count) >
null->size) {
20 int ret =
null->size -
null->offset;
23 null->offset +=
count;
33 null->offset =
count - 1;
49 if ((null->offset +
count) >
null->size) {
50 int ret =
null->size -
null->offset;
52 null->offset =
null->size;
56 null->offset +=
count;
67 if (!
fd || !
fd->data) {
73 if (
offset >= null->size) {
74 return null->offset =
null->size - 1;
76 return null->offset =
offset;
78 if ((null->offset +
offset) >=
null->size) {
79 return null->offset =
null->size - 1;
81 return null->offset +=
offset;
83 return null->offset =
null->size - 1;
89 return (!strncmp(
pathname,
"null://", 7));
107 .desc =
"Null plugin",
119 #ifndef RZ_PLUGIN_INCORE
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void count
static int __read(RzIO *io, RzIODesc *fd, ut8 *buf, int count)
RzIOPlugin rz_io_plugin_null
static bool __plugin_open(RzIO *io, const char *pathname, bool many)
static RzIODesc * __open(RzIO *io, const char *pathname, int rw, int mode)
RZ_API RzLibStruct rizin_plugin
static int __write(RzIO *io, RzIODesc *fd, const ut8 *buf, int count)
static ut64 __lseek(RzIO *io, RzIODesc *fd, ut64 offset, int whence)
static int __close(RzIODesc *fd)
static bool __resize(RzIO *io, RzIODesc *fd, ut64 count)
return memset(p, 0, total)
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 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)
if(dbg->bits==RZ_SYS_BITS_64)
ut64(WINAPI *w32_GetEnabledXStateFeatures)()
static const z80_opcode fd[]