pub fn parse_header_length(size: i32) -> usize
Extract header length from the combined serialize_type field