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
16class Volume;
17
18
19class DataStream
20{
21public:
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);
28private:
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