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

Method history_size

plugins/workflow.cpp:312–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

310 static const size_t hist_entry_size = PersistentDataItem::int28_size * 4;
311
312 size_t history_size() {
313 return history.data_size() / hist_entry_size;
314 }
315 int history_value(int idx, HistoryItem item) {
316 size_t hsize = history_size();
317 size_t base = ((history.ival(0)+1+idx) % hsize) * hist_entry_size;

Callers 1

push_count_historyFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected