1 //----------------------------------------------------------------------
2 // This software is part of the OpenBeOS distribution and is covered
3 // by the OpenBeOS license.
5 // Copyright (c) 2003 Tyler Dauwalder, tyler@dauwalder.net
6 //----------------------------------------------------------------------
8 /*! \file EmbeddedStream.h
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
{
21 EmbeddedStream(DataStream
&stream
, off_t offset
, size_t size
);
24 virtual status_t
_GetExtent(off_t pos
, size_t size
, data_extent
&extent
);
25 virtual off_t
_Size();
32 #endif // _EMBEDDED_STREAM_H