-#include <assert.h>
-
-LOC_EXPORT int loc_stringpool_read(struct loc_stringpool* pool, FILE* f, off_t offset, size_t length) {
- DEBUG(pool->ctx, "Reading string pool from %zu (%zu bytes)\n", offset, length);
-
- pool->data = pool->pos = mmap(NULL, length, PROT_READ,
- MAP_PRIVATE, fileno(f), offset);
- pool->max_length = length;
-
- if (pool->data == MAP_FAILED)
- return -errno;
-
- return 0;
-}
-