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 MemoryStream.cpp
11 #include "MemoryStream.h"
16 MemoryStream::MemoryStream(void *buffer
, size_t length
)
17 : PositionIOStream(fMemory
)
18 , fMemory(buffer
, length
)
19 , fInitStatus(buffer
? B_OK
: B_NO_INIT
)
24 MemoryStream::InitCheck() const
26 status_t error
= PositionIOStream::InitCheck();