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

Public Member Functions

void PushData (const uint8_t *data, size_t data_size)
 Pushes data onto the end of the buffer.
 
bool Next (std::string *out)
 
void Flush ()
 

Detailed Description

Definition at line 22 of file text_readers.h.

Member Function Documentation

◆ Flush()

void shaka::media::LineReader::Flush ( )

Indicates that no more data is coming and that calls to Next should return even possibly-incomplete data.

Definition at line 67 of file text_readers.cc.

◆ Next()

bool shaka::media::LineReader::Next ( std::string *  out)

Reads the next line from the buffer.

Returns
True if a line is read, false if there's no line in the buffer.

Definition at line 24 of file text_readers.cc.


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