pub fn reassemble_group(part_lines: &[String]) -> Option<String>Expand description
Reassemble one complete group of EVENT-PART lines back into the original
<EVENT attrs>body</EVENT> line, byte-for-byte. Returns None (silent
orphan drop) when the group is incomplete or malformed:
- no head part (
seq="1/M") present — earlier parts lost across a session boundary, - missing any seq in 1..=M,
- inconsistent denominators,
- more than one distinct id (use
reassemble_streamfor mixed streams).
Parts may arrive in any order; they are sorted by seq numerator here.