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

Method getContents

lib/llvm/llvm.h:1960–1963  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1958 uint64_t getAddress() const noexcept { return LLVMGetSectionAddress(Ref); }
1959 uint64_t getSize() const noexcept { return LLVMGetSectionSize(Ref); }
1960 Span<const uint8_t> getContents() const noexcept {
1961 return {reinterpret_cast<const uint8_t *>(LLVMGetSectionContents(Ref)),
1962 static_cast<size_t>(LLVMGetSectionSize(Ref))};
1963 }
1964
1965 inline bool isText() const noexcept;
1966 inline bool isData() const noexcept;

Callers 1

outputWasmLibraryFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected