MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / getStringView

Method getStringView

include/runtime/instance/memory.h:288–294  ·  view source on GitHub ↗

Get array of object at specific offset of memory.

Source from the content-addressed store, hash-verified

286
287 /// Get array of object at specific offset of memory.
288 std::string_view getStringView(const uint64_t Offset,
289 const uint64_t Size) const noexcept {
290 if (unlikely(!checkAccessBound(Offset, Size))) {
291 return {};
292 }
293 return {reinterpret_cast<const char *>(&DataPtr[Offset]), Size};
294 }
295
296 /// Template for loading bytes and converting them to a value.
297 ///

Callers 7

bodyMethod · 0.80
convValsToComponentMethod · 0.80
bodyImplMethod · 0.80
bodyMethod · 0.80
bodyMethod · 0.80
bodyMethod · 0.80
bodyMethod · 0.80

Calls 1

unlikelyFunction · 0.85

Tested by

no test coverage detected