mysql_common::proto::codec

Function packet_to_chunks

Source
pub fn packet_to_chunks<T: Buf>(
    seq_id: u8,
    packet: &mut T,
    dst: &mut BytesMut,
) -> u8
Expand description

Will split given packet to MySql packet chunks and write into dst.

Chunk ids will start with given seq_id.

Resulting sequence id will be returned.