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

Method item_pointer

library/include/DataIdentity.h:389–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

387 protected:
388 virtual int item_count(void *ptr, CountMode) const { return size; }
389 virtual void *item_pointer(const type_identity *item, void *ptr, int idx) const {
390 return ((uint8_t*)ptr) + idx * item->byte_size();
391 }
392 };
393#endif
394

Callers

nothing calls this directly

Calls 1

byte_sizeMethod · 0.80

Tested by

no test coverage detected