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

Method writeMapContainer

source/core/StarDataStream.hpp:346–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344
345template <typename Container, typename WriteFunction>
346void DataStream::writeMapContainer(Container& map, WriteFunction function) {
347 writeVlqU(map.size());
348 for (auto const& elem : map)
349 function(*this, elem.first, elem.second);
350}
351
352template <typename Container, typename ReadFunction>
353void DataStream::readMapContainer(Container& map, ReadFunction function) {

Callers 8

StarTileDamage.cppFile · 0.80
writeMethod · 0.80
writeNpcVariantMethod · 0.80
StarJson.cppFile · 0.80
serializeMapContainerMethod · 0.80
StarIdMap.hppFile · 0.80

Calls 2

writeVlqUFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected