| 1543 | */ |
| 1544 | template <typename allocator_type_, typename allocator_callback_> |
| 1545 | static status_t _with_alloc(allocator_type_ &allocator, allocator_callback_ &&callback) noexcept { |
| 1546 | sz_memory_allocator_t alloc; |
| 1547 | alloc.allocate = &_call_allocate<allocator_type_>; |
| 1548 | alloc.free = &_call_free<allocator_type_>; |
| 1549 | alloc.handle = &allocator; |
| 1550 | return static_cast<status_t>(callback(alloc)); |
| 1551 | } |
| 1552 | |
| 1553 | /** |
| 1554 | * @brief Helper function, wrapping a C++ allocator into a C-style allocator. |
no outgoing calls
no test coverage detected
searching dependent graphs…