pub fn read_strings<R: ::std::io::Read>(
    reader: &mut R,
) -> Result<Vec<String>, lightning::ln::msgs::DecodeError> {
    let len: BigSize = lightning::util::ser::Readable::read(reader)?;
    if len.0 > MAX_VEC_SIZE {
        return Err(DecodeError::InvalidValue);
    }
    let mut res = Vec::<String>::new();
    for _ in 0..len.0 {
        res.push(read_string(reader)?);
    }

    Ok(res)
}
/// Reads a set of strings from the given reader.
Reads a set of strings from the given reader.
Reads a set of strings from the given reader .
pub fn read_strings<R: ::std::io::Read>(
    reader: &mut R,
) -> Result<Vec<String>, lightning::ln::msgs::DecodeError> {
    let len: BigSize = lightning::util::ser::Readable::read(reader)?;
    if len.0 > MAX_VEC_SIZE {
        return Err(DecodeError::InvalidValue);
    }
    let mut res = Vec::<String>::new();
    for _ in 0..len.0 {
        res.push(read_string(reader)?);
    }
    Ok(res)
}
pub fn read_strings < R : :: std :: io :: Read > ( reader : & mut R , ) -> Result < Vec < String > , lightning :: ln :: msgs :: DecodeError > { let len : BigSize = lightning :: util :: ser :: Readable :: read ( reader ) ? ; if len . 0 > MAX_VEC_SIZE { return Err ( DecodeError :: InvalidValue ) ; } let mut res = Vec :: < String > :: new ( ) ; for _ in 0 .. len . 0 { res . push ( read_string ( reader ) ? ) ; } Ok ( res ) }
Reads a set of strings from the given reader.
Reads a set of strings from the given reader .
reader
&mut R