StormByte 3.0.0
C++26 foundation of the StormByte suite
Loading...
Searching...
No Matches
heap.hxx File Reference

Private Base heap used by StormByte::Safe::Shared, StormByte::Safe::Unique and StormByte::Safe::Clonable. More...

#include <StormByte/size.hxx>
#include <StormByte/visibility.h>
#include <cstddef>
Include dependency graph for heap.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  StormByte
 Root namespace of the StormByte suite.
namespace  StormByte::Safe
 Owned values that cross a DLL without the caller's CRT.
namespace  StormByte::Safe::Heap
 Allocate and free raw blocks on Base's heap.

Functions

void * StormByte::Safe::Heap::Allocate (std::size_t bytes)
 Allocate bytes on Base's heap.
void StormByte::Safe::Heap::Free (void *pointer) noexcept
 Release a block obtained from Allocate.
void StormByte::Safe::Heap::ThrowExpiredWeakPointer ()
 Throw ExpiredWeakPointerError.
void StormByte::Safe::Heap::RethrowException ()
 Preserve an active StormByte exception or translate a foreign one.

Variables

constexpr Size StormByte::Safe::Heap::Alignment {16}
 Alignment guaranteed by Allocate, in bytes.

Detailed Description

Private Base heap used by StormByte::Safe::Shared, StormByte::Safe::Unique and StormByte::Safe::Clonable.

Not installed. Not part of the public include tree. Implementation lives in safe/heap.cxx so allocation and release run on Base's CRT.