Skip to main content

encode_message_into

Function encode_message_into 

Source
pub fn encode_message_into(message: &Message, bytes: &mut BytesMut)
Expand description

Encodes one producer message directly into an existing aggregate buffer.

This uses the same Java-compatible batch wire layout as encode_message while avoiding a temporary allocation for every message in a batch.