Shaka Packager SDK
Public Member Functions | List of all members
shaka::media::BlockReader 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::vector< std::string > *out)
 
void Flush ()
 

Detailed Description

Definition at line 43 of file text_readers.h.

Member Function Documentation

◆ Flush()

void shaka::media::BlockReader::Flush ( )

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

Definition at line 103 of file text_readers.cc.

◆ Next()

bool shaka::media::BlockReader::Next ( std::vector< std::string > *  out)

Reads the next block from the buffer.

Returns
True if a block is read, false if there is no block in the buffer.

Definition at line 78 of file text_readers.cc.


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