7 #include <packager/file.h>
24 bool Close()
override;
25 int64_t Read(
void* buffer, uint64_t length)
override;
26 int64_t Write(
const void* buffer, uint64_t length)
override;
27 void CloseForWriting()
override;
28 int64_t Size()
override;
29 bool Flush()
override;
30 bool Seek(uint64_t position)
override;
31 bool Tell(uint64_t* position)
override;
43 const BufferCallbackParams* callback_params_ =
nullptr;
45 std::string file_mode_;
CallbackFile(const char *file_name, const char *mode)
All the methods that are virtual are virtual for mocking.