MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / netStore

Method netStore

source/core/StarNetElementContainers.hpp:158–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156
157template <typename BaseMap>
158void NetElementMapWrapper<BaseMap>::netStore(DataStream& ds, NetCompatibilityRules rules) const {
159 if (!checkWithRules(rules)) return;
160 ds.writeVlqU(BaseMap::size() + m_pendingChangeData.size());
161 for (auto const& pair : *this)
162 writeChange(ds, SetChange{pair.first, pair.second});
163
164 for (auto const& p : m_pendingChangeData)
165 writeChange(ds, p.second);
166}
167
168template <typename BaseMap>
169void NetElementMapWrapper<BaseMap>::netLoad(DataStream& ds, NetCompatibilityRules rules) {

Callers

nothing calls this directly

Calls 3

sizeFunction · 0.85
writeVlqUMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected