21 return mal ?
mal->size : 0;
67 if (!
fd || !
buf || count < 0 || !fd->data) {
98 if (
count > mallocsz) {
109 if (!
fd || !
fd->data) {
125 if (!
fd || !
fd->data) {
131 eprintf(
"TODO: Writing changes into gzipped files is not yet supported\n");
137 if (!
fd || !
fd->data) {
157 return (!strncmp(
pathname,
"gzip://", 7));
183 .desc =
"Read/write gzipped files",
195 #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
RZ_API void Ht_() free(HtName_(Ht) *ht)
static void _io_malloc_set_off(RzIODesc *desc, ut64 off)
static int __read(RzIO *io, RzIODesc *fd, ut8 *buf, int count)
RzIOPlugin rz_io_plugin_gzip
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 void _io_malloc_set_sz(RzIODesc *desc, ut32 sz)
static ut64 _io_malloc_off(RzIODesc *desc)
static ut8 * _io_malloc_set_buf(RzIODesc *desc, ut8 *buf)
static ut8 * _io_malloc_buf(RzIODesc *desc)
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)
static ut32 _io_malloc_sz(RzIODesc *desc)
return memset(p, 0, total)
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
void * malloc(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 RZ_OWN char * rz_file_slurp(const char *str, RZ_NULLABLE size_t *usz)
RZ_API ut8 * rz_inflate(RZ_NONNULL const ut8 *src, int srcLen, int *srcConsumed, int *dstLen)
inflate zlib compressed or gzipped, automatically accepts either the zlib or gzip format,...
RZ_API RzIODesc * rz_io_desc_new(RzIO *io, RzIOPlugin *plugin, const char *uri, int flags, int mode, void *data)
if(dbg->bits==RZ_SYS_BITS_64)
ut64(WINAPI *w32_GetEnabledXStateFeatures)()
static const z80_opcode fd[]