libER 0.1.4.2
ELDEN RING API library
Loading...
Searching...
No Matches
Classes | Functions
from_allocator.hpp File Reference

ELDEN RING allocation interface and from::allocator. More...

#include <detail/preprocessor.hpp>
#include <cstddef>
#include <cstdint>
#include <utility>

Go to the source code of this file.

Classes

class  from::DLKR::DLAllocator
 Common ELDEN RING allocator interface. More...
 
class  from::allocator< T >
 The main libER stand-in for ER allocator proxies. More...
 

Functions

LIBERAPI DLAllocatorfrom::DLKR::get_dlallocator_of (const void *p) noexcept
 Get the allocator of memory allocated by ELDEN RING.
 
LIBERAPI DLAllocatorfrom::DLKR::get_base_allocator () noexcept
 Get a compatible ELDEN RING base allocator.
 
template<typename T1 , typename T2 >
bool from::operator== (const allocator< T1 > &lhs, const allocator< T2 > &rhs) noexcept
 Allocator equality comparison.
 
template<typename T >
from::allocator< T > from::get_allocator_of (const T *p) noexcept
 Get the allocator of an object allocated by ELDEN RING.
 

Detailed Description

ELDEN RING allocation interface and from::allocator.

Copyright 2024 libER ELDEN RING API library

Function Documentation

◆ get_allocator_of()

template<typename T >
from::allocator< T > from::get_allocator_of ( const T *  p)
noexcept

Get the allocator of an object allocated by ELDEN RING.

Parameters
ppointer to object
Returns
from::allocator<T> allocator

◆ get_base_allocator()

LIBERAPI DLAllocator & from::DLKR::get_base_allocator ( )
noexcept

Get a compatible ELDEN RING base allocator.

This allocator uses Windows heaps.

Note
Only memory allocated by this allocator should be accessed through its interface.
Returns
DLAllocator& allocator interface

◆ get_dlallocator_of()

LIBERAPI DLAllocator & from::DLKR::get_dlallocator_of ( const void p)
noexcept

Get the allocator of memory allocated by ELDEN RING.

Parameters
ppointer to a block of memory
Returns
DLAllocator& allocator interface