https://github.com/mapbox/tippecanoe
Raw File
Tip revision: fba9b4b0edee5b2ef00317761d55a46be3d46c26 authored by Eric Fischer on 24 April 2018, 14:00:37 UTC
Clip lines and points late in the process too
Tip revision: fba9b4b
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