[][src]Function libp2p_core::upgrade::write_varint

pub async fn write_varint<'_>(
    socket: &'_ mut impl AsyncWrite + Unpin,
    len: usize
) -> Result<(), Error>

Writes a variable-length integer to the socket.

Note: Does NOT flush the socket.