| 265 | // Helper function for making a Span to a uint8_t array. |
| 266 | template <typename T> |
| 267 | inline constexpr Span<const T> genSpan(const T *Buf, |
| 268 | const uint64_t Len) noexcept { |
| 269 | if (Buf && Len > 0) { |
| 270 | return Span<const T>(Buf, Len); |
| 271 | } |
| 272 | return Span<const T>(); |
| 273 | } |
| 274 | |
| 275 | // Helper functions for converting WasmEdge_String to std::String. |
| 276 | inline std::string_view genStrView(const WasmEdge_String S) noexcept { |
no outgoing calls
no test coverage detected