数据对齐Data Alignment

以下 C 运行时函数支持数据对齐。The following C run-time functions support data alignment.

数据对齐例程Data-Alignment Routines

例程Routine 使用Use
_aligned_free_aligned_free 释放使用 _aligned_malloc_aligned_offset_malloc 分配的内存块。Frees a block of memory that was allocated with _aligned_mallocor _aligned_offset_malloc.
_aligned_free_dbg_aligned_free_dbg 释放使用 _aligned_malloc_aligned_offset_malloc 分配的内存块(仅限调试)。Frees a block of memory that was allocated with _aligned_malloc or _aligned_offset_malloc (debug only).
_aligned_malloc_aligned_malloc 在指定对齐边界分配内存。Allocates memory on a specified alignment boundary.
_aligned_malloc_dbg_aligned_malloc_dbg 在指定内存边界上为调试标头和覆盖缓冲区分配内存(仅限调试模式)。Allocates memory on a specified alignment boundary with additional space for a debugging header and overwrite buffers (debug version only).
_aligned_msize_aligned_msize 返回在堆中分配的存储块的大小。Returns the size of a memory block allocated in the heap.
_aligned_msize_dbg_aligned_msize_dbg 返回在堆中分配的内存块的大小(仅限调试版本)。Returns the size of a memory block allocated in the heap (debug version only).
_aligned_offset_malloc_aligned_offset_malloc 在指定对齐边界分配内存。Allocates memory on a specified alignment boundary.
_aligned_offset_malloc_dbg_aligned_offset_malloc_dbg 在指定对齐边界分配内存(仅限调试版本)。Allocates memory on a specified alignment boundary (debug version only).
_aligned_offset_realloc_aligned_offset_realloc 更改使用 _aligned_malloc_aligned_offset_malloc 分配的内存块的大小。Changes the size of a memory block that was allocated with _aligned_malloc or _aligned_offset_malloc.
_aligned_offset_realloc_dbg_aligned_offset_realloc_dbg 更改使用 _aligned_malloc_aligned_offset_malloc 分配的内存块的大小(仅限调试版本)。Changes the size of a memory block that was allocated with _aligned_malloc or _aligned_offset_malloc (debug version only).
_aligned_offset_recalloc_aligned_offset_recalloc 更改使用 _aligned_malloc_aligned_offset_malloc 分配的内存块的大小,并将该内存初始化为 0。Changes the size of a memory block that was allocated with _aligned_malloc or _aligned_offset_malloc and initializes the memory to 0.
_aligned_offset_recalloc_dbg_aligned_offset_recalloc_dbg 更改使用 _aligned_malloc_aligned_offset_malloc 分配的内存块的大小,并将该内存初始化为 0(仅限调试版本)。Changes the size of a memory block that was allocated with _aligned_malloc or _aligned_offset_malloc and initializes the memory to 0 (debug version only).
_aligned_realloc_aligned_realloc 更改使用 _aligned_malloc_aligned_offset_malloc 分配的内存块的大小。Changes the size of a memory block that was allocated with _aligned_malloc or _aligned_offset_malloc.
_aligned_realloc_dbg_aligned_realloc_dbg 更改使用 _aligned_malloc_aligned_offset_malloc 分配的内存块的大小(仅限调试版本)。Changes the size of a memory block that was allocated with _aligned_malloc or _aligned_offset_malloc (debug version only).
_aligned_recalloc_aligned_recalloc 更改使用 _aligned_malloc_aligned_offset_malloc 分配的内存块的大小,并将该内存初始化为 0。Changes the size of a memory block that was allocated with _aligned_malloc or _aligned_offset_malloc and initializes the memory to 0.
_aligned_recalloc_dbg_aligned_recalloc_dbg 更改使用 _aligned_malloc_aligned_offset_malloc 分配的内存块的大小,并将该内存初始化为 0(仅限调试版本)。Changes the size of a memory block that was allocated with _aligned_malloc or _aligned_offset_malloc and initializes the memory to 0 (debug version only).

另请参阅See Also

按类别分的运行时例程Run-Time Routines by Category