Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenStarbound/OpenStarbound
/ writeData
Method
writeData
source/core/StarNetElementBasicFields.cpp:13–18 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
11
}
12
13
void NetElementSize::writeData(DataStream& ds, size_t const& v) const {
14
if (v == NPos)
15
ds.writeVlqU(0);
16
else
17
ds.writeVlqU(v + 1);
18
}
19
20
void NetElementBool::readData(DataStream& ds, bool& v) const {
21
ds.read(v);
Callers
nothing calls this directly
Calls
2
writeVlqU
Method · 0.80
write
Method · 0.45
Tested by
no test coverage detected