scsl 0.1.1
Shimmering Clarity Standard Library
Classes | Namespaces | Enumerations | Functions
Arena.h File Reference

Memory management using an arena. More...

#include <iostream>
#include <sys/stat.h>
#include <cstddef>
#include <cstdint>
#include "Exceptions.h"

Go to the source code of this file.

Classes

class  scsl::Arena
 

Namespaces

namespace  scsl
 scsl is the top-level namespace containing all the code in this library.
 

Enumerations

enum class  scsl::ArenaType : uint8_t { scsl::Uninit , scsl::Static , scsl::Alloc , scsl::MemoryMapped }
 

Functions

std::ostream & scsl::operator<< (std::ostream &os, Arena &arena)
 

Detailed Description

Memory management using an arena.

Author
K. Isom
Date
2023-10-06

Arena defines a memory management backend for pre-allocating memory.

SUPPORT

Arena will build on the major platforms, but memory-mapped files are only supported on Unix-like systems. File I/O on Windows, for example, reads the file into an allocated arena. See Arena::Open for more details.