mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-08 19:04:06 +01:00
b0581433a7
fix: remove executable flag and change back to 100644 (was 100755) Signed-off-by: Roger Meier <r.meier@siemens.com>
60 lines
920 B
C++
60 lines
920 B
C++
//
|
|
// MemoryStream.cpp
|
|
//
|
|
// $Id: //poco/1.4/Foundation/src/MemoryStream.cpp#1 $
|
|
//
|
|
// Library: Foundation
|
|
// Package: Streams
|
|
// Module: MemoryStream
|
|
//
|
|
// Copyright (c) 2009, Applied Informatics Software Engineering GmbH.
|
|
// and Contributors.
|
|
//
|
|
// SPDX-License-Identifier: BSL-1.0
|
|
//
|
|
|
|
|
|
#include "Poco/MemoryStream.h"
|
|
|
|
|
|
namespace Poco {
|
|
|
|
|
|
MemoryIOS::MemoryIOS(char* pBuffer, std::streamsize bufferSize):
|
|
_buf(pBuffer, bufferSize)
|
|
{
|
|
poco_ios_init(&_buf);
|
|
}
|
|
|
|
|
|
MemoryIOS::~MemoryIOS()
|
|
{
|
|
}
|
|
|
|
|
|
MemoryInputStream::MemoryInputStream(const char* pBuffer, std::streamsize bufferSize):
|
|
MemoryIOS(const_cast<char*>(pBuffer), bufferSize),
|
|
std::istream(&_buf)
|
|
{
|
|
}
|
|
|
|
|
|
MemoryInputStream::~MemoryInputStream()
|
|
{
|
|
}
|
|
|
|
|
|
MemoryOutputStream::MemoryOutputStream(char* pBuffer, std::streamsize bufferSize):
|
|
MemoryIOS(pBuffer, bufferSize),
|
|
std::ostream(&_buf)
|
|
{
|
|
}
|
|
|
|
|
|
MemoryOutputStream::~MemoryOutputStream()
|
|
{
|
|
}
|
|
|
|
|
|
} // namespace Poco
|