Skip to main content

moq_versions

Function moq_versions 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn moq_versions( dst: *mut moq_string, count: usize, ) -> i32
Expand description

List the protocol versions offered during the handshake by default.

Writes up to count names into dst and returns the total number available, which may be larger than count. Pass a NULL dst with a zero count to size the array first. Each name borrows a static string valid for the life of the process, so a caller building a menu can hold them indefinitely.

Returns the total count on success, or a negative code on failure.

ยงSafety

  • The caller must ensure that dst is either NULL with a zero count, or a valid pointer to count writable moq_string values.