1 #include "FileDataIO.h" 2 3 FileDataIO::FileDataIO(const char *filepath, uint32 open_mode) 4 : file(new BFile(filepath, open_mode)) 5 { 6 } 7 8 FileDataIO::~FileDataIO() 9 { 10 delete file; 11 } 12 13 ssize_t 14 FileDataIO::Read(void *buffer, size_t size) 15 { 16 return file->Read(buffer, size); 17 } 18 19 ssize_t 20 FileDataIO::Write(const void *buffer, size_t size) 21 { 22 return file->Write(buffer, size); 23 } 24 25