Lines Matching refs:size
158 * Function attribute used on a function that allocates memory, whose size is
162 * void *av_malloc(size_t size) av_alloc_size(1);
163 * void *av_calloc(size_t nmemb, size_t size) av_alloc_size(1, 2);
196 * @param size Size in bytes for the memory block to be allocated
201 void *av_malloc(size_t size) av_malloc_attrib av_alloc_size(1);
208 * @param size Size in bytes for the memory block to be allocated
212 void *av_mallocz(size_t size) av_malloc_attrib av_alloc_size(1);
217 * The allocated memory will have size `size * nmemb` bytes.
220 * @param size Size of a single element
225 av_alloc_size(1, 2) void *av_malloc_array(size_t nmemb, size_t size);
230 * The allocated memory will have size `size * nmemb` bytes.
233 * @param size Size of the single element
240 void *av_calloc(size_t nmemb, size_t size) av_malloc_attrib av_alloc_size(1, 2);
247 void *av_mallocz_array(size_t nmemb, size_t size) av_malloc_attrib av_alloc_size(1, 2);
253 * If `ptr` is `NULL` and `size` > 0, allocate a new block. Otherwise, expand or
254 * shrink that block of memory according to `size`.
258 * @param size Size in bytes of the memory block to be allocated or
266 * if size is zero.
270 void *av_realloc(void *ptr, size_t size) av_alloc_size(2);
276 * If `*ptr` is `NULL` and `size` > 0, allocate a new block. If `size` is
278 * shrink that block of memory according to `size`.
283 * @param[in] size Size in bytes for the memory block to be allocated or
292 int av_reallocp(void *ptr, size_t size);
298 * - It takes two size arguments and allocates `nelem * elsize` bytes,
319 * @param size Size of the single element of the array
329 av_alloc_size(2, 3) void *av_realloc_array(void *ptr, size_t nmemb, size_t size);
340 * @param[in] size Size of the single element
347 int av_reallocp_array(void *ptr, size_t nmemb, size_t size);
355 * returned and `*size` is set to 0, but the original buffer is not changed or
371 * @param[in,out] size Pointer to the size of buffer `ptr`. `*size` is
372 * updated to the new allocated size, in particular 0
374 * @param[in] min_size Desired minimal size of buffer `ptr`
381 void *av_fast_realloc(void *ptr, unsigned int *size, size_t min_size);
405 * @param[in,out] size Pointer to the size of buffer `*ptr`. `*size` is
406 * updated to the new allocated size, in particular 0
408 * @param[in] min_size Desired minimal size of buffer `*ptr`
412 void av_fast_malloc(void *ptr, unsigned int *size, size_t min_size);
426 * @param[in,out] size Pointer to the size of buffer `*ptr`. `*size` is
427 * updated to the new allocated size, in particular 0
429 * @param[in] min_size Desired minimal size of buffer `*ptr`
432 void av_fast_mallocz(void *ptr, unsigned int *size, size_t min_size);
495 * @param size Size in bytes of the buffer copied
499 void *av_memdup(const void *p, size_t size);
505 * @param back Number of bytes back to start copying (i.e. the initial size of
534 * to know the size of the type. Both av_dynarray_add() and
561 * result, the function has to know the size of the type. av_dynarray2_add()
600 * The array is reallocated when its size reaches powers of 2.
630 * Add an element of size `elem_size` to a dynamic array.
677 * Set the maximum size that may be allocated in one block.
684 * @param max Value to be set as the new maximum size