Function polkadot_sdk_frame::runtime::apis::localized_payload_with_buffer
pub fn localized_payload_with_buffer<E>(
round: u64,
set_id: u64,
message: &E,
buf: &mut Vec<u8>,
)where
E: Encode,
Expand description
Encode round message localized to a given round and set id using the given buffer. The given buffer will be cleared and the resulting encoded payload will always be written to the start of the buffer.