Poco

template < typename T >

class BasicMemoryBinaryWriter

File Information

Library: Foundation
Package: Streams
Header: Poco/BinaryWriter.h

Description

A convenient wrapper for using Buffer and MemoryStream with BinarWriter.

Inheritance

Direct Base Classes: BinaryWriter

All Base Classes: BinaryWriter

Member Summary

Member Functions: data, stream

Inherited Functions: bad, byteOrder, fail, flush, good, operator <<, stream, write7BitEncoded, writeBOM, writeCString, writeRaw

Constructors

BasicMemoryBinaryWriter inline

BasicMemoryBinaryWriter(
    Buffer < T > & data,
    StreamByteOrder byteOrder = NATIVE_BYTE_ORDER
);

BasicMemoryBinaryWriter inline

BasicMemoryBinaryWriter(
    Buffer < T > & data,
    TextEncoding & encoding,
    StreamByteOrder byteOrder = NATIVE_BYTE_ORDER
);

Destructor

~BasicMemoryBinaryWriter inline

~BasicMemoryBinaryWriter();

Member Functions

data inline

Buffer < T > & data();

data inline

const Buffer < T > & data() const;

stream inline

const MemoryOutputStream & stream() const;

stream inline

MemoryOutputStream & stream();