Shaka Packager SDK
Public Member Functions | Protected Member Functions | List of all members
shaka::CallbackFile Class Reference

#include <callback_file.h>

Inheritance diagram for shaka::CallbackFile:

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ CallbackFile()

shaka::CallbackFile::CallbackFile ( const char *  file_name,
const char *  mode 
)
Parameters
file_nameis the callback file name, which should have callback address encoded. Note that the file type prefix should be stripped off already.
modeC string containing a file access mode, refer to fopen for the available modes.

Definition at line 16 of file callback_file.cc.


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