chore: checkpoint before CaptureDemo SDK migration

This commit is contained in:
Mark.lin
2026-07-21 16:19:49 +08:00
parent 634c02b1f6
commit c760f2e97d
325 changed files with 7830 additions and 544 deletions
@@ -0,0 +1,18 @@
#include "utils.h"
BYTE* Utils::allocate_buffer(size_t size, size_t alignment)
{
if (size == 0)
{
size = 4;
}
if (alignment == 0)
{
SYSTEM_INFO sys_info;
GetSystemInfo(&sys_info);
alignment = sys_info.dwPageSize;
}
return (BYTE *)_aligned_malloc(size, alignment);
}