MCPcopy Create free account
hub / github.com/CesiumGS/cesium-native / stringToBytes

Function stringToBytes

CesiumVectorData/test/TestGeoJsonParser.cpp:27–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25
26namespace {
27static std::span<const std::byte> stringToBytes(const std::string& str) {
28 return std::span<const std::byte>(
29 reinterpret_cast<const std::byte*>(str.data()),
30 str.size());
31}
32
33void expectParserResult(
34 const std::string& json,

Callers 2

expectParserResultFunction · 0.70

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected