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