Lines Matching full:nmemb
86 * Helper function to allocate a block of size * nmemb bytes with
88 * @param nmemb Number of elements
94 av_alloc_size(1, 2) static inline void *av_malloc_array(size_t nmemb, size_t size)
96 if (size <= 0 || nmemb >= INT_MAX / size)
98 return av_malloc(nmemb * size);
127 * If ptr is NULL and nmemb > 0, allocate a new block. If
128 * nmemb is zero, free the memory block pointed to by ptr.
131 * @param nmemb Number of elements
136 av_alloc_size(2, 3) void *av_realloc_array(void *ptr, size_t nmemb, size_t size);
140 * If *ptr is NULL and nmemb > 0, allocate a new block. If
141 * nmemb is zero, free the memory block pointed to by ptr.
145 * @param nmemb Number of elements
149 av_alloc_size(2, 3) int av_reallocp_array(void *ptr, size_t nmemb, size_t size);
172 * Allocate a block of nmemb * size bytes with alignment suitable for all
175 * The allocation will fail if nmemb * size is greater than or equal
177 * @param nmemb
181 void *av_calloc(size_t nmemb, size_t size) av_malloc_attrib;
184 * Helper function to allocate a block of size * nmemb bytes with
186 * @param nmemb Number of elements
193 av_alloc_size(1, 2) static inline void *av_mallocz_array(size_t nmemb, size_t size)
195 if (size <= 0 || nmemb >= INT_MAX / size)
197 return av_mallocz(nmemb * size);