xref: /haiku/src/tests/kits/media/wav_reader_test/FileDataIO.cpp (revision 3e216965baa8d58a67bf7372e2bfa13d999f5a9d)
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