xref: /haiku/src/add-ons/kernel/file_systems/exfat/DataStream.h (revision 8a9e1e0d4a586732b5008d8a5888e14aa815b893)
1 /*
2  * Copyright 2011, Haiku Inc. All rights reserved.
3  * This file may be used under the terms of the MIT License.
4  *
5  * Authors:
6  *		Jérôme Duval
7  */
8 #ifndef DATASTREAM_H
9 #define DATASTREAM_H
10 
11 
12 #include "exfat.h"
13 #include "Inode.h"
14 
15 
16 class Volume;
17 
18 
19 class DataStream
20 {
21 public:
22 								DataStream(Volume* volume, Inode* inode,
23 									off_t size);
24 								~DataStream();
25 
26 			status_t			FindBlock(off_t pos, off_t& physical,
27 									off_t *_length = NULL);
28 private:
29 			const uint32		kBlockSize;
30 			const uint32		kClusterSize;
31 			Volume*				fVolume;
32 			Inode*				fInode;
33 			off_t				fNumBlocks;
34 			off_t				fSize;
35 };
36 
37 #endif	// DATASTREAM_H
38 
39