Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
sf::Allocator Struct Reference

Memory allocator class. More...

#include <TDynamicBuffer.h>

Public Types

typedef int handle_t
 Dummy type for allocators which need handles.

Static Public Member Functions

static void * allocmem (handle_t &, size_t sz)
 Allocates the memory for a dynamic buffer.
static void * reallocmem (handle_t &, void *p, size_t sz)
 Reallocates the memory for a dynamic buffer.
static void freemem (handle_t, void *&p)
 Frees the memory for a dynamic buffer.

Detailed Description

Memory allocator class.

Member Typedef Documentation

◆ handle_t

Dummy type for allocators which need handles.

Member Function Documentation

◆ allocmem()

void * sf::Allocator::allocmem ( handle_t & ,
size_t sz )
inlinestatic

Allocates the memory for a dynamic buffer.

◆ freemem()

void sf::Allocator::freemem ( handle_t ,
void *& p )
inlinestatic

Frees the memory for a dynamic buffer.

◆ reallocmem()

void * sf::Allocator::reallocmem ( handle_t & ,
void * p,
size_t sz )
inlinestatic

Reallocates the memory for a dynamic buffer.


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