Shaka Packager SDK
|
Class to read character-by-character from a file. More...
#include <text_readers.h>
Public Member Functions | |
bool | Next (char *out) |
Static Public Member Functions | |
static Status | Open (const std::string &filename, std::unique_ptr< FileReader > *out) |
Class to read character-by-character from a file.
Definition at line 23 of file text_readers.h.
bool shaka::media::FileReader::Next | ( | char * | out | ) |
Read the next character from the file. If there is a next character, |out| will be set and true will be returned. If there is no next character false will be returned.
Definition at line 32 of file text_readers.cc.
|
static |
Create a new file reader by opening a file. If the file fails to open (in readonly mode) a non-ok status will be returned. If the file successfully opens, |out| will be set to a new FileReader and an ok status will be returned.
Definition at line 15 of file text_readers.cc.