Build the string pool in an appendable memory map, not the normal heap

This commit is contained in:
Eric Fischer
2015-06-18 16:13:37 -07:00
parent d96dee8dad
commit dc3021656e
4 changed files with 141 additions and 48 deletions
+10
View File
@@ -0,0 +1,10 @@
struct memfile {
int fd;
char *map;
long long len;
long long off;
};
struct memfile *memfile_open(int fd);
int memfile_close(struct memfile *file);
int memfile_write(struct memfile *file, void *s, long long len);