https://github.com/mapbox/tippecanoe
Raw File
Tip revision: 03577cf96737213f3f74a68c522a0b0abc332a54 authored by Eric Fischer on 12 February 2018, 20:53:32 UTC
Merge pull request #529 from mapbox/files-left-open
Tip revision: 03577cf
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