Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenStarbound/OpenStarbound
/ jsonFromSize
Function
jsonFromSize
source/core/StarJsonExtra.cpp:17–21 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
15
}
16
17
Json jsonFromSize(size_t s) {
18
if (s == NPos)
19
return Json();
20
return Json(s);
21
}
22
23
Vec2D jsonToVec2D(Json const& v) {
24
if (v.type() != Json::Type::Array || v.size() != 2)
Callers
1
writeStoredData
Method · 0.85
Calls
1
Json
Class · 0.85
Tested by
no test coverage detected