| 2922 | } |
| 2923 | |
| 2924 | WASMEDGE_CAPI_EXPORT const uint8_t *WasmEdge_MemoryInstanceGetPointerConst( |
| 2925 | const WasmEdge_MemoryInstanceContext *Cxt, const uint64_t Offset, |
| 2926 | const uint64_t Length) noexcept { |
| 2927 | if (Cxt) { |
| 2928 | const auto S = fromMemCxt(Cxt)->getSpan<const uint8_t>(Offset, Length); |
| 2929 | if (S.size() == Length) { |
| 2930 | return S.data(); |
| 2931 | } |
| 2932 | } |
| 2933 | return nullptr; |
| 2934 | } |
| 2935 | |
| 2936 | WASMEDGE_CAPI_EXPORT uint64_t WasmEdge_MemoryInstanceGetPageSize( |
| 2937 | const WasmEdge_MemoryInstanceContext *Cxt) noexcept { |