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

Method readData

source/core/StarNetElementBasicFields.cpp:5–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3namespace Star {
4
5void NetElementSize::readData(DataStream& ds, size_t& v) const {
6 uint64_t s = ds.readVlqU();
7 if (s == 0)
8 v = NPos;
9 else
10 v = s - 1;
11}
12
13void NetElementSize::writeData(DataStream& ds, size_t const& v) const {
14 if (v == NPos)

Callers

nothing calls this directly

Calls 2

readVlqUMethod · 0.80
readMethod · 0.45

Tested by

no test coverage detected