solana_perf::packet

Function to_packet_batches

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