MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / SlCalcRefListLen

Function SlCalcRefListLen

src/saveload/saveload.cpp:1447–1450  ·  view source on GitHub ↗

* Return the size in bytes of a list. * @param list The std::list to find the size of. * @param conv VarType type of variable that is used for calculating the size. */

Source from the content-addressed store, hash-verified

1445 * @param conv VarType type of variable that is used for calculating the size.
1446 */
1447static inline size_t SlCalcRefListLen(const void *list, VarType conv)
1448{
1449 return SlStorageHelper<std::list, void *>::SlCalcLen(list, conv, SL_REF);
1450}
1451
1452/**
1453 * Save/Load a list.

Callers 2

SlRefListFunction · 0.85
SlCalcObjMemberLengthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected