pub fn extract_protobuf_header(buf: &[u8]) -> Result<(i32, &[u8])>