Поделиться через


_set_amblksiz

Provides a secure way to set the block size for memory allocations.

errno_t _set_amblksiz(  
   size_t blockSize 
);

Параметры

  • [in] blockSize
    The desired size of memory blocks for memory allocation.

Возвращаемое значение

Zero if successful; an error code on failure.

Заметки

This function sets the value of the _amblksiz global variable, which is used by malloc and other memory allocation functions to determine the smallest block of memory that might be allocated from the heap at once. If blockSize is not a multiple of two, the actual block size is the next multiple of two.

Требования

Routine

Required header

_set_amblksiz

<malloc.h>

For more compatibility information, see Compatibility in the Introduction.

Эквивалент в .NET Framework

Not applicable. To call the standard C function, use PInvoke. For more information, see Platform Invoke Examples.

См. также

Основные понятия

_amblksiz

_get_amblksiz