libcute 0.1
Loading...
Searching...
No Matches
Classes | Functions
fixedallocator.h File Reference
#include "memory/allocator.h"
#include "nostd.h"
Include dependency graph for fixedallocator.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  cu_FixedAllocator
 

Functions

cu_Allocator cu_Allocator_FixedAllocator (cu_FixedAllocator *alloc, cu_Slice buffer)
 
void cu_FixedAllocator_reset (cu_FixedAllocator *alloc)
 

Detailed Description

Fixed-size buffer allocator.

Function Documentation

◆ cu_Allocator_FixedAllocator()

cu_Allocator cu_Allocator_FixedAllocator ( cu_FixedAllocator alloc,
cu_Slice  buffer 
)

Initialize a fixed allocator using the given buffer.

◆ cu_FixedAllocator_reset()

void cu_FixedAllocator_reset ( cu_FixedAllocator alloc)

Reset the allocator to reuse the buffer.