|
cpp-msgpack-light 0.3.0
A light library to serialize MessagePack.
|
Class to wrap allocators. More...
#include <msgpack_light/details/allocator_wrapper.h>
Public Member Functions | |
| allocator_wrapper (Allocator allocator) | |
| Constructor. | |
| char * | allocate_char (std::size_t size) |
| Allocate char instances. | |
| key_value_pair_data * | allocate_key_value_pair_data (std::size_t size) |
| Allocate key-value pair data. | |
| object_data * | allocate_object_data (std::size_t size) |
| Allocate object data. | |
| unsigned char * | allocate_unsigned_char (std::size_t size) |
| Allocate unsigned char instances. | |
| void | deallocate_char (char *ptr) noexcept |
| Deallocate char instances. | |
| void | deallocate_key_value_pair_data (key_value_pair_data *ptr) noexcept |
| Deallocate key-value pair data. | |
| void | deallocate_object_data (object_data *ptr) noexcept |
| Deallocate object data. | |
| void | deallocate_unsigned_char (unsigned char *ptr) noexcept |
| Deallocate unsigned char instances. | |
Private Attributes | |
| Allocator | allocator_ |
| Allocator. | |
Class to wrap allocators.
| Allocator | Type of the allocator. |
Definition at line 35 of file allocator_wrapper.h.
|
inlineexplicit |
|
inlinenodiscard |
Allocate char instances.
| [in] | size | Number of elements. |
Definition at line 111 of file allocator_wrapper.h.
|
inlinenodiscard |
Allocate key-value pair data.
| [in] | size | Number of pairs. |
Definition at line 71 of file allocator_wrapper.h.
|
inlinenodiscard |
Allocate object data.
| [in] | size | Number of elements. |
Definition at line 51 of file allocator_wrapper.h.
|
inlinenodiscard |
Allocate unsigned char instances.
| [in] | size | Number of elements. |
Definition at line 92 of file allocator_wrapper.h.
|
inlinenoexcept |
Deallocate char instances.
| [in] | ptr | Pointer to the char instances. |
Definition at line 120 of file allocator_wrapper.h.
|
inlinenoexcept |
Deallocate key-value pair data.
| [in] | ptr | Pointer to the key-value pair data. |
Definition at line 82 of file allocator_wrapper.h.
|
inlinenoexcept |
Deallocate object data.
| [in] | ptr | Pointer to the object data. |
Definition at line 61 of file allocator_wrapper.h.
|
inlinenoexcept |
Deallocate unsigned char instances.
| [in] | ptr | Pointer to the unsigned char instances. |
Definition at line 101 of file allocator_wrapper.h.
|
private |
Allocator.
Definition at line 124 of file allocator_wrapper.h.