Creates a newly allocated buffer with data of the given size.
The buffer memory is not cleared. If the requested amount of
memory can't be allocated, the program will abort. Use
gst_buffer_try_new_and_alloc() if you want to handle this case
gracefully or have gotten the size to allocate from an untrusted
source such as a media stream.
Note that when size == 0, the buffer data pointer will be NULL.
MT safe.
Creates a newly allocated buffer with data of the given size. The buffer memory is not cleared. If the requested amount of memory can't be allocated, the program will abort. Use gst_buffer_try_new_and_alloc() if you want to handle this case gracefully or have gotten the size to allocate from an untrusted source such as a media stream. Note that when size == 0, the buffer data pointer will be NULL. MT safe.