pub fn read_boxes<R: ReadBytes>(mut file: R) -> io::Result<Vec<MP4Box>> {
    let mut boxes = Vec::new();
    while file.left() >= 8 {
        let b = MP4Box::from_bytes(&mut file)?;
        boxes.push(b);
    }
    Ok(boxes)
}
/// Read a collection of boxes from a stream.
Read a collection of boxes from a stream.
Read a collection of boxes from a stream .
pub fn read_boxes<R: ReadBytes>(mut file: R) -> io::Result<Vec<MP4Box>> {
    let mut boxes = Vec::new();
    while file.left() >= 8 {
        let b = MP4Box::from_bytes(&mut file)?;
        boxes.push(b);
    }
    Ok(boxes)
}
pub fn read_boxes < R : ReadBytes > ( mut file : R ) -> io :: Result < Vec < MP4Box > > { let mut boxes = Vec :: new ( ) ; while file . left ( ) >= 8 { let b = MP4Box :: from_bytes ( & mut file ) ? ; boxes . push ( b ) ; } Ok ( boxes ) }
Read a collection of boxes from a stream.
Read a collection of boxes from a stream .
file
R
file
R