#include <callback_file.h>
|
| | CallbackFile (const char *file_name, const char *mode) |
| |
|
| 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 |
| |
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.
◆ CallbackFile()
| shaka::CallbackFile::CallbackFile |
( |
const char * |
file_name, |
|
|
const char * |
mode |
|
) |
| |
- Parameters
-
| 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.
◆ ~CallbackFile()
| shaka::CallbackFile::~CallbackFile |
( |
| ) |
|
|
overrideprotected |
◆ Close()
| bool shaka::CallbackFile::Close |
( |
| ) |
|
|
override |
◆ CloseForWriting()
| void shaka::CallbackFile::CloseForWriting |
( |
| ) |
|
|
override |
◆ Flush()
| bool shaka::CallbackFile::Flush |
( |
| ) |
|
|
override |
◆ Open()
| bool shaka::CallbackFile::Open |
( |
| ) |
|
|
overrideprotected |
◆ Read()
| int64_t shaka::CallbackFile::Read |
( |
void * |
buffer, |
|
|
uint64_t |
length |
|
) |
| |
|
override |
◆ Seek()
| bool shaka::CallbackFile::Seek |
( |
uint64_t |
position | ) |
|
|
override |
◆ Size()
| int64_t shaka::CallbackFile::Size |
( |
| ) |
|
|
override |
◆ Tell()
| bool shaka::CallbackFile::Tell |
( |
uint64_t * |
position | ) |
|
|
override |
◆ Write()
| int64_t shaka::CallbackFile::Write |
( |
const void * |
buffer, |
|
|
uint64_t |
length |
|
) |
| |
|
override |
The documentation for this class was generated from the following files: