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

Function SlCalcRefVectorLen

src/saveload/saveload.cpp:1474–1477  ·  view source on GitHub ↗

* Return the size in bytes of a vector. * @param vector The std::vector 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

1472 * @param conv VarType type of variable that is used for calculating the size.
1473 */
1474static size_t SlCalcRefVectorLen(const void *vector, VarType conv)
1475{
1476 return SlStorageHelper<std::vector, void *>::SlCalcLen(vector, conv, SL_REF);
1477}
1478
1479/**
1480 * Save/Load a vector.

Callers 2

SlRefVectorFunction · 0.85
SlCalcObjMemberLengthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected