MCPcopy Create free account
hub / github.com/DFHack/dfhack / check_data

Function check_data

library/include/modules/Persistence.h:107–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105 }
106
107 bool check_data(size_t off, size_t sz = 1) const
108 {
109 return (data_size() >= off + sz);
110 }
111 void ensure_data(size_t off, size_t sz = 0)
112 {
113 if (data_size() < off + sz)

Callers 1

Persistence.hFile · 0.85

Calls 1

data_sizeFunction · 0.85

Tested by

no test coverage detected