1*0238e54cSbeveloper #ifndef _FILE_DATA_IO 2*0238e54cSbeveloper #define _FILE_DATA_IO 3*0238e54cSbeveloper 4*0238e54cSbeveloper #include <DataIO.h> 5*0238e54cSbeveloper #include <File.h> 6*0238e54cSbeveloper 7*0238e54cSbeveloper class FileDataIO : public BDataIO 8*0238e54cSbeveloper { 9*0238e54cSbeveloper public: 10*0238e54cSbeveloper FileDataIO(const char *filepath, uint32 open_mode); 11*0238e54cSbeveloper ~FileDataIO(); 12*0238e54cSbeveloper 13*0238e54cSbeveloper ssize_t Read(void *buffer, size_t size); 14*0238e54cSbeveloper ssize_t Write(const void *buffer, size_t size); 15*0238e54cSbeveloper 16*0238e54cSbeveloper private: 17*0238e54cSbeveloper BFile *file; 18*0238e54cSbeveloper }; 19*0238e54cSbeveloper 20*0238e54cSbeveloper #endif 21