MCPcopy 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
17Json jsonFromSize(size_t s) {
18 if (s == NPos)
19 return Json();
20 return Json(s);
21}
22
23Vec2D jsonToVec2D(Json const& v) {
24 if (v.type() != Json::Type::Array || v.size() != 2)

Callers 1

writeStoredDataMethod · 0.85

Calls 1

JsonClass · 0.85

Tested by

no test coverage detected