Lines Matching defs:nmemb
86 * Allocate a block of size * nmemb bytes with av_malloc().
87 * @param nmemb Number of elements
93 av_alloc_size(1, 2) static inline void *av_malloc_array(size_t nmemb, size_t size)
95 if (!size || nmemb >= INT_MAX / size)
97 return av_malloc(nmemb * size);
151 * If ptr is NULL and nmemb > 0, allocate a new block. If
152 * nmemb is zero, free the memory block pointed to by ptr.
155 * @param nmemb Number of elements
166 av_alloc_size(2, 3) void *av_realloc_array(void *ptr, size_t nmemb, size_t size);
170 * If *ptr is NULL and nmemb > 0, allocate a new block. If
171 * nmemb is zero, free the memory block pointed to by ptr.
175 * @param nmemb Number of elements
185 av_alloc_size(2, 3) int av_reallocp_array(void *ptr, size_t nmemb, size_t size);
208 * Allocate a block of nmemb * size bytes with alignment suitable for all
211 * The allocation will fail if nmemb * size is greater than or equal
213 * @param nmemb
217 void *av_calloc(size_t nmemb, size_t size) av_malloc_attrib;
220 * Allocate a block of size * nmemb bytes with av_mallocz().
221 * @param nmemb Number of elements
228 av_alloc_size(1, 2) static inline void *av_mallocz_array(size_t nmemb, size_t size)
230 if (!size || nmemb >= INT_MAX / size)
232 return av_mallocz(nmemb * size);