https://github.com/mapbox/tippecanoe
Raw File
Tip revision: baf8ccd6a2a0aa2233304a7946973016576ea60a authored by Eric Fischer on 31 May 2019, 22:40:31 UTC
Add a feature to extract elements from array attributes by zoom level
Tip revision: baf8ccd
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
back to top