wasm_memory.h 588 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright (C) 2019 Intel Corporation. All rights reserved.
  3. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. */
  5. #ifndef _WASM_MEMORY_H
  6. #define _WASM_MEMORY_H
  7. #include "bh_common.h"
  8. #include "../include/wasm_export.h"
  9. #include "../interpreter/wasm_runtime.h"
  10. #ifdef __cplusplus
  11. extern "C" {
  12. #endif
  13. bool
  14. wasm_runtime_memory_init(mem_alloc_type_t mem_alloc_type,
  15. const MemAllocOption *alloc_option);
  16. void
  17. wasm_runtime_memory_destroy();
  18. unsigned
  19. wasm_runtime_memory_pool_size();
  20. #ifdef __cplusplus
  21. }
  22. #endif
  23. #endif /* end of _WASM_MEMORY_H */