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

Function stringToBytes

CesiumVectorData/test/TestGeoJsonObject.cpp:21–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19
20namespace {
21static std::span<const std::byte> stringToBytes(const std::string& str) {
22 return std::span<const std::byte>(
23 reinterpret_cast<const std::byte*>(str.data()),
24 str.size());
25}
26
27GeoJsonObject parseGeoJsonObject(const std::string& json) {
28 Result<GeoJsonDocument> doc =

Callers 1

parseGeoJsonObjectFunction · 0.70

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected