MCPcopy Create free account
hub / github.com/Niko1221/Strata / aligned_block

Function aligned_block

engine/src/core/conversation_file.cpp:87–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

FileSinkMethod · 0.85
FileSourceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected