⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

segment_data

Function segment_data 

Source
pub fn segment_data(channel_id: u16, data: &[u8], mtu: u16) -> Vec<SarFragment>
Expand description

Segment data into MTU-sized L2CAP PDU fragments

The first fragment includes the L2CAP header (length + CID). Subsequent fragments are continuation packets.