solana_perf::packet

Function to_packet_batches

Source
pub fn to_packet_batches<T: Serialize>(
    items: &[T],
    chunk_size: usize,
) -> Vec<PacketBatch>