MCPcopy Create free account
hub / github.com/crawl/crawl / _write_map_cache

Function _write_map_cache

crawl-ref/source/maps.cc:1469–1481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1467}
1468
1469static void _write_map_cache(const string &filename, size_t vs, size_t ve,
1470 time_t mtime)
1471{
1472 _check_des_index_dir();
1473
1474 const string descache_base = get_descache_path(filename, "");
1475
1476 file_lock deslock(descache_base + ".lk", "wb");
1477
1478 _write_map_prelude(descache_base, mtime);
1479 _write_map_full(descache_base, vs, ve, mtime);
1480 _write_map_index(descache_base, vs, ve, mtime);
1481}
1482
1483static void _parse_maps(const string &s)
1484{

Callers 1

_parse_mapsFunction · 0.85

Calls 5

_check_des_index_dirFunction · 0.85
get_descache_pathFunction · 0.85
_write_map_preludeFunction · 0.85
_write_map_fullFunction · 0.85
_write_map_indexFunction · 0.85

Tested by

no test coverage detected