Rizin
unix-like reverse engineering framework and cli tools
io_memory.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: 2021 eagleoflqj <liumeo@pku.edu.cn>
2 // SPDX-License-Identifier: LGPL-3.0-only
3 
4 #ifndef IO_MEMORY_H
5 #define IO_MEMORY_H
6 
7 #include "rz_io.h"
8 
9 typedef struct {
10  ut8 *buf;
13 } RzIOMalloc;
14 
16 int io_memory_read(RzIO *io, RzIODesc *fd, ut8 *buf, int count);
17 ut64 io_memory_lseek(RzIO *io, RzIODesc *fd, ut64 offset, int whence);
18 int io_memory_write(RzIO *io, RzIODesc *fd, const ut8 *buf, int count);
20 
21 #endif
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
Definition: sflib.h:98
uint32_t ut32
bool io_memory_resize(RzIO *io, RzIODesc *fd, ut64 count)
Definition: io_memory.c:74
int io_memory_read(RzIO *io, RzIODesc *fd, ut8 *buf, int count)
Definition: io_memory.c:97
int io_memory_write(RzIO *io, RzIODesc *fd, const ut8 *buf, int count)
Definition: io_memory.c:56
ut64 io_memory_lseek(RzIO *io, RzIODesc *fd, ut64 offset, int whence)
Definition: io_memory.c:125
int io_memory_close(RzIODesc *fd)
Definition: io_memory.c:114
voidpf uLong offset
Definition: ioapi.h:144
voidpf void * buf
Definition: ioapi.h:138
uint8_t ut8
Definition: lh5801.h:11
ut32 size
Definition: io_memory.h:11
ut64 offset
Definition: io_memory.h:12
ut8 * buf
Definition: io_memory.h:10
Definition: rz_io.h:59
ut64(WINAPI *w32_GetEnabledXStateFeatures)()
static const z80_opcode fd[]
Definition: z80_tab.h:997