class Poco::MemoryOutputStream

Overview

An input stream for reading from a memory area. Moreā€¦

#include <MemoryStream.h>

class MemoryOutputStream:
    public Poco::MemoryIOS,
    public ostream
{
public:
    // construction

    MemoryOutputStream(
        char* pBuffer,
        std::streamsize bufferSize
        );

    // methods

    std::streamsize
    charsWritten() const;
};

Inherited Members

public:
    // methods

    MemoryStreamBuf*
    rdbuf();

protected:
    // fields

    MemoryStreamBuf _buf;

Detailed Documentation

An input stream for reading from a memory area.

Construction

MemoryOutputStream(
    char* pBuffer,
    std::streamsize bufferSize
    )

Creates a MemoryOutputStream for the given memory area, ready for writing.

Methods

std::streamsize
charsWritten() const

Returns the number of chars written to the buffer.