wasm_memory.h 547 B

123456789101112131415161718192021222324252627282930
  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. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. bool
  13. wasm_runtime_memory_init(mem_alloc_type_t mem_alloc_type,
  14. const MemAllocOption *alloc_option);
  15. void
  16. wasm_runtime_memory_destroy();
  17. unsigned
  18. wasm_runtime_memory_pool_size();
  19. #ifdef __cplusplus
  20. }
  21. #endif
  22. #endif /* end of _WASM_MEMORY_H */