| 72 | } |
| 73 | |
| 74 | bool TestIPv6Enabled() { |
| 75 | static bool Resolved = false; |
| 76 | static bool IPv6Enabled; |
| 77 | |
| 78 | if (!Resolved) { |
| 79 | IPv6Enabled = TrySetUpIPV6Socket(); |
| 80 | Resolved = true; |
| 81 | } |
| 82 | |
| 83 | return IPv6Enabled; |
| 84 | } |
| 85 | |
| 86 | template <typename T> void unalignedCopy(T *Dest, const T &Src) noexcept { |
| 87 | auto DestSpan = as_writable_bytes(WasmEdge::Span<T, 1>(Dest, 1)); |
no test coverage detected