unsafe fn asio_channel_slice_mut<T>(
    asio_stream: &sys::AsioStream,
    buffer_index: usize,
    channel_index: usize,
) -> &mut [T] {
    let buff_ptr: *mut T =
        asio_stream.buffer_infos[channel_index].buffers[buffer_index as usize] as *mut _;
    std::slice::from_raw_parts_mut(buff_ptr, asio_stream.buffer_size as usize)
}
/// Shorthand for retrieving the asio buffer slice associated with a channel.
///
/// Safety: it's up to the user to ensure that this function is not called multiple times for the
/// same channel.
Shorthand for retrieving the asio buffer slice associated with a channel.
Safety: it's up to the user to ensure that this function is not called multiple times for the
same channel.
Shorthand for retrieving the asio buffer slice associated with a channel . Safety : it ' s up to the user to ensure that this function is not called multiple times for the same channel .
unsafe fn asio_channel_slice_mut<T>(
    asio_stream: &sys::AsioStream,
    buffer_index: usize,
    channel_index: usize,
) -> &mut [T] {
    let buff_ptr: *mut T =
        asio_stream.buffer_infos[channel_index].buffers[buffer_index as usize] as *mut _;
    std::slice::from_raw_parts_mut(buff_ptr, asio_stream.buffer_size as usize)
}
unsafe fn asio_channel_slice_mut < T > ( asio_stream : & sys :: AsioStream , buffer_index : usize , channel_index : usize , ) -> & mut [ T ] { let buff_ptr : * mut T = asio_stream . buffer_infos [ channel_index ] . buffers [ buffer_index as usize ] as * mut _ ; std :: slice :: from_raw_parts_mut ( buff_ptr , asio_stream . buffer_size as usize ) }
Shorthand for retrieving the asio buffer slice associated with a channel.
Shorthand for retrieving the asio buffer slice associated with a channel .
asio_stream
&sys::AsioStream
buffer_index
usize
channel_index
usize
asio_stream
&sys::AsioStream
buffer_index
usize
channel_index
usize