Shaka Packager SDK
|
#include <callback_file.h>
Public Member Functions | |
CallbackFile (const char *file_name, const char *mode) | |
File implementation overrides. | |
bool | Close () override |
int64_t | Read (void *buffer, uint64_t length) override |
int64_t | Write (const void *buffer, uint64_t length) override |
void | CloseForWriting () override |
int64_t | Size () override |
bool | Flush () override |
bool | Seek (uint64_t position) override |
bool | Tell (uint64_t *position) override |
Protected Member Functions | |
bool | Open () override |
Implements CallbackFile, which delegates read/write calls to the callback functions set through the file name.
Definition at line 13 of file callback_file.h.
shaka::CallbackFile::CallbackFile | ( | const char * | file_name, |
const char * | mode | ||
) |
file_name | is the callback file name, which should have callback address encoded. Note that the file type prefix should be stripped off already. |
mode | C string containing a file access mode, refer to fopen for the available modes. |
Definition at line 16 of file callback_file.cc.