sandbox
Loading...
Searching...
No Matches
memory.hpp
1// SPDX-License-Identifier: MIT
2#ifndef LIBSBX_SCRIPTING_MANAGED_MEMORY_HPP_
3#define LIBSBX_SCRIPTING_MANAGED_MEMORY_HPP_
4
5#include <libsbx/scripting/managed/core.hpp>
6
7namespace sbx::scripting::managed {
8
9struct memory {
10
11 static auto allocate_hglobal(std::size_t size) -> void*;
12 static auto free_hglobal(void* pointer) -> void;
13
14 static auto string_to_co_task_memory_auto(string_view_type string) -> char_type*;
15 static auto free_co_task_memory(void* memory) -> void;
16
17}; // struct memory
18
19} // namespace sbx::scripting::managed
20
21#endif // LIBSBX_SCRIPTING_MANAGED_MEMORY_HPP_
Definition: memory.hpp:9