Assorted whitespace cleanup and typo fixes.
[haiku.git] / src / bin / makeudfimage / EmbeddedStream.h
blob12310b082f4ded1cff6600f245b75ef19db4e6ab
1 //----------------------------------------------------------------------
2 // This software is part of the OpenBeOS distribution and is covered
3 // by the OpenBeOS 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