Skip to main content

template

Function template 

Source
pub fn template(msg_size: ByteSize) -> BytesMut
Expand description

Builds a reusable filler template of exactly msg_size bytes, or of the header length if that is larger.

The first 24 bytes are zero, and stamp_into overwrites them at send time. The remaining bytes are a repeating pattern.