#include <base.hpp>
|
static const size_t | size = 1024 |
|
Definition at line 52 of file base.hpp.
◆ handler_allocator()
websocketpp::transport::asio::handler_allocator::handler_allocator |
( |
| ) |
|
|
inline |
◆ allocate()
void * websocketpp::transport::asio::handler_allocator::allocate |
( |
std::size_t | memsize | ) |
|
|
inline |
Definition at line 63 of file base.hpp.
63 {
64 if (!m_in_use && memsize <
size) {
65 m_in_use = true;
66 return static_cast<void*>(&m_storage);
67 } else {
68 return ::operator new(memsize);
69 }
70 }
◆ deallocate()
void websocketpp::transport::asio::handler_allocator::deallocate |
( |
void * | pointer | ) |
|
|
inline |
Definition at line 72 of file base.hpp.
72 {
74 m_in_use = false;
75 } else {
77 }
78 }
const GenericPointer< typename T::ValueType > & pointer
◆ size
const size_t websocketpp::transport::asio::handler_allocator::size = 1024 |
|
static |
The documentation for this class was generated from the following file:
- libraries/fc/vendor/websocketpp/websocketpp/transport/asio/base.hpp