Basilisk CFD
Adaptive Cartesian mesh PDE framework
Loading...
Searching...
No Matches
Memalloc Struct Reference

#include <range.h>

Data Fields

void ** p
 
int size
 

Detailed Description

Multi-dimensional arrays with arbitrary bounds

This file implements low-level memory allocation for multi-dimensional arrays with arbitrary starting and ending indices. This is used to implement more memory-efficient tree structures.

The Memalloc data structure represents the one-dimensional array which is defined by a generic pointer p and the size of its elements size in bytes.

The range of indices of the array is defined by the Memrange data structure.

Definition at line 17 of file range.h.

Field Documentation

◆ p

void** Memalloc::p

Definition at line 18 of file range.h.

Referenced by memrange_alloc(), and memrange_free().

◆ size

int Memalloc::size

Definition at line 19 of file range.h.

Referenced by memrange_free().


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