Function iroh_bytes::protocol::write_lp

source ·
pub async fn write_lp<W: AsyncWrite + Unpin>(
    writer: &mut W,
    data: &[u8]
) -> Result<()>
Expand description

Write the given data to the provider sink, with a unsigned varint length prefix.