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

Function _write_map_full

crawl-ref/source/maps.cc:1428–1443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1426}
1427
1428static void _write_map_full(const string &filebase, size_t vs, size_t ve,
1429 time_t mtime)
1430{
1431 const string cfile = filebase + ".dsc";
1432 FILE *fp = fopen_u(cfile.c_str(), "wb");
1433 if (!fp)
1434 end(1, true, "Unable to open %s for writing", cfile.c_str());
1435
1436 writer outf(cfile, fp);
1437 write_save_version(outf, save_version::current());
1438 marshallByte(outf, WORD_LEN);
1439 marshallSigned(outf, mtime);
1440 for (size_t i = vs; i < ve; ++i)
1441 vdefs[i].write_full(outf);
1442 fclose(fp);
1443}
1444
1445static void _write_map_index(const string &filebase, size_t vs, size_t ve,
1446 time_t mtime)

Callers 1

_write_map_cacheFunction · 0.85

Calls 6

fopen_uFunction · 0.85
endFunction · 0.85
write_save_versionFunction · 0.85
marshallByteFunction · 0.85
marshallSignedFunction · 0.85
write_fullMethod · 0.80

Tested by

no test coverage detected