rizin/librz/io/io_memory.h
Riccardo Schirone dd38e70964
Add some SPDX headers (#1469)
* Add copyright and license to all librz/include/*.h files in dep5

* SPDX headers for most include files except bin/arch/debug

* Add SPDX headers in asm/arch/{8051,arm}

* Add SPDX header for shlr/gdb include files

* Add SPDX header for shlr/bochs include files

* Add SPDX header for librz/reg

* Add SPDX header for librz/debug/p/native/xnu

* Add SPDX header for librz/debug/p/native/windows

* Add SPDX header for librz/debug/p/native/reg include files

* Add SPDX header for librz/debug/p/native/maps include files

* Add SPDX header for librz/debug/p/native/linux include files
2021-08-17 18:27:03 +02:00

21 lines
546 B
C

// SPDX-FileCopyrightText: 2021 eagleoflqj <liumeo@pku.edu.cn>
// SPDX-License-Identifier: LGPL-3.0-only
#ifndef IO_MEMORY_H
#define IO_MEMORY_H
#include "rz_io.h"
typedef struct {
ut8 *buf;
ut32 size;
ut64 offset;
} RzIOMalloc;
int io_memory_close(RzIODesc *fd);
int io_memory_read(RzIO *io, RzIODesc *fd, ut8 *buf, int count);
ut64 io_memory_lseek(RzIO *io, RzIODesc *fd, ut64 offset, int whence);
int io_memory_write(RzIO *io, RzIODesc *fd, const ut8 *buf, int count);
bool io_memory_resize(RzIO *io, RzIODesc *fd, ut64 count);
#endif