mirror of
https://github.com/fluencelabs/c-template
synced 2025-04-25 06:32:14 +00:00
13 lines
364 B
C
13 lines
364 B
C
|
#ifndef FLUENCE_C_SDK_ALLOCATOR_H
|
||
|
#define FLUENCE_C_SDK_ALLOCATOR_H
|
||
|
|
||
|
#include <stddef.h> // for size_t
|
||
|
|
||
|
// used by Wasm VM for byte array passing (should be exported from module)
|
||
|
void *allocate(size_t size);
|
||
|
|
||
|
// used by Wasm VM for freeing previous memory allocated by allocate function
|
||
|
void deallocate(void *ptr, size_t size);
|
||
|
|
||
|
#endif //FLUENCE_C_SDK_ALLOCATOR_H
|