Revision 45b1a1d9e069d804e5c3fc09d927cb2b0377c0c5 authored by Eric Fischer on 27 February 2018, 00:47:15 UTC, committed by Eric Fischer on 27 February 2018, 00:47:15 UTC
1 parent 06ed9d1
Raw File
memfile.hpp
#ifndef MEMFILE_HPP
#define MEMFILE_HPP

struct memfile {
	int fd = 0;
	char *map = NULL;
	long long len = 0;
	long long off = 0;
	unsigned long tree = 0;
};

struct memfile *memfile_open(int fd);
int memfile_close(struct memfile *file);
int memfile_write(struct memfile *file, void *s, long long len);

#endif
back to top