btrfs: Attempt to fix GCC2 build.
[haiku.git] / src / bin / makeudfimage / EmbeddedStream.h
blobd3f0dc048f57b99b9d601ad6a1aa9f48306290d3
1 //----------------------------------------------------------------------
2 // This software is part of the OpenBeOS distribution and is covered
3 // by the MIT License.
4 //
5 // Copyright (c) 2003 Tyler Dauwalder, tyler@dauwalder.net
6 //----------------------------------------------------------------------
8 /*! \file EmbeddedStream.h
9 */
11 #ifndef _EMBEDDED_STREAM_H
12 #define _EMBEDDED_STREAM_H
14 #include "SimulatedStream.h"
16 /*! \brief SimulatedStream implementation that takes a single,
17 not-neccessarily-block-aligned extent.
19 class EmbeddedStream : public SimulatedStream {
20 public:
21 EmbeddedStream(DataStream &stream, off_t offset, size_t size);
23 protected:
24 virtual status_t _GetExtent(off_t pos, size_t size, data_extent &extent);
25 virtual off_t _Size();
27 private:
28 off_t fOffset;
29 size_t fSize;
32 #endif // _EMBEDDED_STREAM_H