| 85 | struct AlignedFree { void operator()(uint8_t* p) const { _aligned_free(p); } }; |
| 86 | using Aligned = std::unique_ptr<uint8_t, AlignedFree>; |
| 87 | Aligned aligned_block() { return Aligned(static_cast<uint8_t*>(_aligned_malloc(kBlock, kAlign))); } |
| 88 | #else |
| 89 | struct AlignedFree { void operator()(uint8_t* p) const { std::free(p); } }; |
| 90 | using Aligned = std::unique_ptr<uint8_t, AlignedFree>; |
no outgoing calls
no test coverage detected