mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-28 07:30:33 +00:00
20 lines
443 B
C
20 lines
443 B
C
#ifndef IO_MEMORY_H
|
|
#define IO_MEMORY_H
|
|
|
|
#include "r_io.h"
|
|
|
|
typedef struct {
|
|
ut8 *buf;
|
|
ut32 size;
|
|
ut64 offset;
|
|
void *data;
|
|
} RIOMalloc;
|
|
|
|
bool io_memory_close(RIODesc *fd);
|
|
int io_memory_read(RIO *io, RIODesc *fd, ut8 *buf, int count);
|
|
ut64 io_memory_lseek(RIO* io, RIODesc *fd, ut64 offset, int whence);
|
|
int io_memory_write(RIO *io, RIODesc *fd, const ut8 *buf, int count);
|
|
bool io_memory_resize(RIO *io, RIODesc *fd, ut64 count);
|
|
|
|
#endif
|