Shaka Packager SDK
Classes | Public Member Functions | List of all members
shaka::media::WebMListParser Class Reference

#include <webm_parser.h>

Public Member Functions

 WebMListParser (int id, WebMParserClient *client)
 
void Reset ()
 Resets the state of the parser so it can start parsing a new list.
 
int Parse (const uint8_t *buf, int size)
 
bool IsParsingComplete () const
 

Detailed Description

Parses a WebM list element and all of its children. This class supports incremental parsing of the list so Parse() can be called multiple times with pieces of the list. IsParsingComplete() will return true once the entire list has been parsed.

Definition at line 53 of file webm_parser.h.

Constructor & Destructor Documentation

◆ WebMListParser()

shaka::media::WebMListParser::WebMListParser ( int  id,
WebMParserClient client 
)
Parameters
idElement ID of the list we intend to parse.
clientCalled as different elements in the list are parsed.

Definition at line 731 of file webm_parser.cc.

Member Function Documentation

◆ IsParsingComplete()

bool shaka::media::WebMListParser::IsParsingComplete ( ) const
Returns
true if the entire list has been parsed.

Definition at line 831 of file webm_parser.cc.

◆ Parse()

int shaka::media::WebMListParser::Parse ( const uint8_t *  buf,
int  size 
)

Parses list data contained in |buf|.

Returns
< 0 if the parse fails.
0 if more data is needed.
> 0 indicates success & the number of bytes parsed.

Definition at line 747 of file webm_parser.cc.


The documentation for this class was generated from the following files: