FancySafeBot 0.0.1
A safe robotics library
Loading...
Searching...
No Matches
Work buffers

Fixed-size work buffer allocation utilities. More...

Classes

struct  fsb::WorkBlock< T >
 A view describing an allocated work block. More...
 
class  fsb::WorkArray< T, Capacity >
 Fixed-capacity allocator for temporary work buffers. More...
 
class  fsb::WorkFrame< T, Capacity >
 RAII helper that restores a WorkArray to its entry marker. More...
 

Enumerations

enum class  fsb::WorkArrayStatus : uint8_t { WorkArrayStatus::SUCCESS = 0 , WorkArrayStatus::FULL , WorkArrayStatus::INVALID_ARGUMENT , WorkArrayStatus::OUT_OF_ORDER }
 

Detailed Description

Fixed-size work buffer allocation utilities.

This module provides a small, deterministic allocator that hands out pointers to contiguous ranges within a fixed-size private array. allocations must be freed in strict LIFO order, and no dynamic memory allocation is performed.

This is useful for managing temporary buffers within linear algebra operations without dynamic memory allocation.

Enumeration Type Documentation

◆ WorkArrayStatus

enum class fsb::WorkArrayStatus : uint8_t
strong
Enumerator
SUCCESS 

Successful operation.

FULL 

Not enough space available.

INVALID_ARGUMENT 

Invalid argument (null pointer, out of range, size==0, etc.)

OUT_OF_ORDER 

Attempted to free memory out of LIFO order.