btrfs: Attempt to fix GCC2 build.
[haiku.git] / src / bin / makeudfimage / MemoryStream.h
blob12063de9eb15aa2824e183a4df53e6cb931e7b34
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 MemoryStream.h
9 */
11 #ifndef _MEMORY_STREAM_H
12 #define _MEMORY_STREAM_H
14 #include <DataIO.h>
16 #include "PositionIOStream.h"
18 /*! \brief DataStream implementation that writes directly to a chunk of memory.
20 class MemoryStream : public PositionIOStream {
21 public:
22 MemoryStream(void *buffer, size_t length);
23 virtual status_t InitCheck() const;
25 private:
26 BMemoryIO fMemory;
27 status_t fInitStatus;
30 #endif // _MEMORY_STREAM_H