CppServer
1.0.4.0
C++ Server Library
|
#include <memory.h>
Public Member Functions | |
HandlerStorage () noexcept | |
HandlerStorage (const HandlerStorage &)=delete | |
HandlerStorage (HandlerStorage &&)=delete | |
~HandlerStorage () noexcept=default | |
HandlerStorage & | operator= (const HandlerStorage &)=delete |
HandlerStorage & | operator= (HandlerStorage &&)=delete |
void * | allocate (size_t size) |
Allocate memory buffer. More... | |
void | deallocate (void *ptr) |
Deallocate memory buffer. More... | |
Asio handler storage.
Class to manage the memory to be used for handler-based custom allocation. It contains a single block of memory which may be returned for allocation requests. If the memory is in use when an allocation request is made, the allocator delegates allocation to the global heap.
Not thread-safe.
|
inlinenoexcept |
|
delete |
|
delete |
|
defaultnoexcept |
|
inline |
Allocate memory buffer.
size | - Size of allocated block in bytes |
Definition at line 12 of file memory.inl.
|
inline |
Deallocate memory buffer.
ptr | - Pointer to the allocated buffer |
Definition at line 25 of file memory.inl.
|
delete |
|
delete |