btrfs: [] on the end of a struct field is a variable length array.
[haiku.git] / src / add-ons / kernel / file_systems / exfat / DataStream.h
blob53a706fb5458053d7f24168492c43c7800412cea
1 /*
2 * Copyright 2011, Haiku Inc. All rights reserved.
3 * This file may be used under the terms of the MIT License.
5 * Authors:
6 * Jérôme Duval
7 */
8 #ifndef DATASTREAM_H
9 #define DATASTREAM_H
12 #include "exfat.h"
13 #include "Inode.h"
16 class Volume;
19 class DataStream
21 public:
22 DataStream(Volume* volume, Inode* inode,
23 off_t size);
24 ~DataStream();
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;
37 #endif // DATASTREAM_H