Serene Runtime 1.0.0
C runtime for the Serene programming language
Loading...
Searching...
No Matches
srn_memory_provider_t Struct Reference

This interface is here to abstract over the allocator. More...

#include <interface.h>

Data Fields

void *(* allocate )(size_t size, size_t alignment)
 
void(* release )(void *p)
 

Detailed Description

This interface is here to abstract over the allocator.

For instance, malloc/free can be a page provider. This will let us switch to other implementation later on. Eventually we might end up coming up with our own version of malloc/free.

Definition at line 69 of file interface.h.

Field Documentation

◆ allocate

void *(* srn_memory_provider_t::allocate) (size_t size, size_t alignment)

Definition at line 70 of file interface.h.

◆ release

void(* srn_memory_provider_t::release) (void *p)

Definition at line 71 of file interface.h.


The documentation for this struct was generated from the following file: