MCPcopy Create free account
hub / github.com/CoolProp/CoolProp / check_array

Function check_array

src/SBTL/SVDSurfaceSerializer.cpp:224–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224void check_array(const msgpack::object& o, std::size_t expected_min, const char* what) {
225 if (o.type != msgpack::type::ARRAY) {
226 throw std::runtime_error(std::string("SVDSurfaceSerializer: expected array for ") + what);
227 }
228 if (o.via.array.size < expected_min) {
229 throw std::runtime_error(std::string("SVDSurfaceSerializer: array for ") + what + " too short");
230 }
231}
232
233std::unique_ptr<region::BoundaryCurve> unpack_curve(const msgpack::object& o,
234 const std::shared_ptr<region::SuperancillaryBoundaryCurve::SuperAncillary_t>& sa) {

Callers 5

unpack_curveFunction · 0.85
unpack_regionFunction · 0.85
unpack_decompFunction · 0.85
unpack_surfaceFunction · 0.85
loadMethod · 0.85

Calls 1

stringClass · 0.50

Tested by

no test coverage detected