[][src]Function swf_parser::parse_tag

pub fn parse_tag(input: &[u8], swf_version: u8) -> (&[u8], Option<Tag>)

Parses the tag at the start of input.

This parser assumes that input is complete: it has all the data until the end of the movie.

This function returns the remaining input and the tag. None indicates the end of tags (empty input or End raw tag). This function always succeeds. Malformed tags produce a Tag::Raw containing the invalid bytes.