pub unsafe extern "C" fn burn_os_alloc_buffer(
amount: usize,
flag: c_int,
) -> *mut c_voidExpand description
Allocate a memory area that is suitable for reading with a file descriptor opened by burn_os_open_track_src().
@param amount Number of bytes to allocate. This should be a multiple of the operating system’s i/o block size. 32 KB is guaranteed by libburn to be safe.
@param flag Bitfield for control purposes (unused yet, submit 0).
@return The address of the allocated memory, or NULL on failure. A non-NULL return value has finally to be disposed via burn_os_free_buffer().
@since 0.7.4