1 //----------------------------------------------------------------------
2 // This software is part of the OpenBeOS distribution and is covered
5 // Copyright (c) 2003 Tyler Dauwalder, tyler@dauwalder.net
6 //----------------------------------------------------------------------
8 /*! \file MemoryStream.h
11 #ifndef _MEMORY_STREAM_H
12 #define _MEMORY_STREAM_H
16 #include "PositionIOStream.h"
18 /*! \brief DataStream implementation that writes directly to a chunk of memory.
20 class MemoryStream
: public PositionIOStream
{
22 MemoryStream(void *buffer
, size_t length
);
23 virtual status_t
InitCheck() const;
30 #endif // _MEMORY_STREAM_H