FileMap struct

Read-only view of a file.

One view is current. fmap_data, fmap_window, and fmap_close invalidate the pointer from the previous view. The caller does not free that pointer. A FileMap is used from one thread. The layout is private.

Public variables

int fd
uint64_t size
size_t align
void* map_base
size_t map_bytes
void* fallback