Skip to main content

switch_buffer_toss

Function switch_buffer_toss 

Source
pub unsafe extern "C" fn switch_buffer_toss(
    buffer: *mut switch_buffer_t,
    datalen: switch_size_t,
) -> switch_size_t
Expand description

\brief Remove data from the buffer \param buffer any buffer of type switch_buffer_t \param datalen amount of data to be removed \return int size of buffer, or 0 if unable to toss that much data