split_geometry_sections

Function split_geometry_sections 

Source
fn split_geometry_sections(geometry: &[u8]) -> Option<(Bytes, Bytes, Bytes)>
Expand description

Split the triple-framed [mesh_len][mesh][vertex_len][vertex][index_len] [index] geometry blob into its three sections. None on any short or mismatched-length framing, or trailing bytes past the third section.