Read a marshal tuple of strings, returning owned Strings.
(rdr: &mut R)
| 304 | |
| 305 | /// Read a marshal tuple of strings, returning owned Strings. |
| 306 | fn read_marshal_str_vec<R: Read>(rdr: &mut R) -> Result<Vec<alloc::string::String>> { |
| 307 | let type_byte = rdr.read_u8()? & !FLAG_REF; |
| 308 | let n = match type_byte { |
| 309 | b'(' => rdr.read_u32()? as usize, |
| 310 | b')' => rdr.read_u8()? as usize, |
| 311 | _ => return Err(MarshalError::BadType), |
| 312 | }; |
| 313 | (0..n).map(|_| read_marshal_str(rdr)).collect() |
| 314 | } |
| 315 | |
| 316 | fn read_marshal_name_tuple<R: Read, Bag: ConstantBag>( |
| 317 | rdr: &mut R, |
no test coverage detected