7 #ifndef PACKAGER_FILE_LOCAL_FILE_H_
8 #define PACKAGER_FILE_LOCAL_FILE_H_
14 #include "packager/base/compiler_specific.h"
15 #include "packager/media/file/file.h"
17 namespace edash_packager {
30 bool Close()
override;
31 int64_t
Read(
void* buffer, uint64_t length)
override;
32 int64_t
Write(
const void* buffer, uint64_t length)
override;
33 int64_t
Size()
override;
34 bool Flush()
override;
35 bool Seek(uint64_t position)
override;
36 bool Tell(uint64_t* position)
override;
42 static bool Delete(
const char* file_name);
50 std::string file_mode_;
59 #endif // PACKAGER_FILE_LOCAL_FILE_H_