[−][src]Function mmal_sys::mmal_port_payload_alloc
pub unsafe extern "C" fn mmal_port_payload_alloc(
port: *mut MMAL_PORT_T,
payload_size: u32
) -> *mut u8
Allocate a payload buffer. This allows a client to allocate memory for a payload buffer based on the preferences of a port. This for instance will allow the port to allocate memory which can be shared between the host processor and videocore.
See \ref mmal_pool_create_with_allocator().
@param port Port responsible for allocating the memory. @param payload_size Size of the payload buffer which will be allocated.
@return Pointer to the allocated memory.