Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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.h
File · 0.85
Calls
1
data_size
Function · 0.85
Tested by
no test coverage detected