Shaka Packager SDK
|
Implement LocalFile which deals with local storage. More...
#include <local_file.h>
Public Member Functions | |
LocalFile (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 |
Static Public Member Functions | |
static bool | Delete (const char *file_name) |
Protected Member Functions | |
bool | Open () override |
Implement LocalFile which deals with local storage.
Definition at line 19 of file local_file.h.
shaka::LocalFile::LocalFile | ( | const char * | file_name, |
const char * | mode | ||
) |
file_name | C string containing the name of the file to be accessed. |
mode | C string containing a file access mode, refer to fopen for the available modes. |
Definition at line 28 of file local_file.cc.
|
static |
Delete a local file.
file_name | is the path of the file to be deleted. |
Definition at line 138 of file local_file.cc.