Skip to main content

moq_publish_container_write

Function moq_publish_container_write 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn moq_publish_container_write( container: u32, payload: *const u8, payload_size: usize, ) -> i32
Expand description

Write a whole chunk of container bytes.

No timestamp: a container carries its tracks’ timing itself, and the importer reads it out rather than taking the caller’s word for it.

Returns zero on success, or a negative code on failure.

§Safety

  • The caller must ensure payload is valid for payload_size bytes.