Revision 8c2df5f7b49cfff5e7541eeb2d1363f34af5b39e authored by Eric Fischer on 14 February 2019, 00:45:11 UTC, committed by Eric Fischer on 14 February 2019, 00:45:11 UTC
1 parent 87bdaa1
memfile.hpp
#ifndef MEMFILE_HPP
#define MEMFILE_HPP
#include <atomic>
struct memfile {
int fd = 0;
char *map = NULL;
std::atomic<long long> len;
long long off = 0;
unsigned long tree = 0;
memfile()
: len(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
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...