Function mesh_protobuf::buffer::write_with

source ยท
pub fn write_with<T, F, R>(buffer: &mut T, f: F) -> R
where T: Buffer + ?Sized, F: FnOnce(Buf<'_>) -> R,
Expand description

Calls f with a Buf, which provides safe methods for extending the initialized portion of the buffer.