Skip to main content

write_varint

Function write_varint 

Source
pub fn write_varint(buffer: &mut BytesMut, value: u64)
Expand description

Write a varint-encoded u64 to a byte buffer

This is the synchronous version used for constructing in-memory buffers. For async I/O, use WireFormat::write_varint64 instead.