xref: /haiku/src/tests/kits/media/mp3_reader_test/FileDataIO.h (revision 21258e2674226d6aa732321b6f8494841895af5f)
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