pub fn parse(buf: &mut Cursor<&[u8]>) -> Result<Frame, ParseFrameError>
Parses the buffered data into frames