Vanilla.PDF  2.1.0
Cross-platform toolkit for creating and modifying PDF documents
List of all members
MemoryBufferOutputStreamHandle Class Reference

An output stream that writes data to an internal memory buffer. More...

Inheritance diagram for MemoryBufferOutputStreamHandle:
IUnknownHandle
error_type CALLING_CONVENTION MemoryBufferOutputStream_Create (MemoryBufferOutputStreamHandle **result)
 Creates a new file at filename location and opens it for writing.
 
error_type CALLING_CONVENTION MemoryBufferOutputStream_GetOutputPosition (MemoryBufferOutputStreamHandle *handle, offset_type *result)
 Gets current offset in the output stream.
 
error_type CALLING_CONVENTION MemoryBufferOutputStream_SetOutputPosition (MemoryBufferOutputStreamHandle *handle, offset_type value)
 Sets current offset in the output stream.
 
error_type CALLING_CONVENTION MemoryBufferOutputStream_WriteString (MemoryBufferOutputStreamHandle *handle, string_type data)
 Appends null terminated string data to current output stream instance.
 
error_type CALLING_CONVENTION MemoryBufferOutputStream_WriteBuffer (MemoryBufferOutputStreamHandle *handle, BufferHandle *data)
 Appends buffer data to current output stream instance.
 
error_type CALLING_CONVENTION MemoryBufferOutputStream_WriteBufferRange (MemoryBufferOutputStreamHandle *handle, BufferHandle *data, offset_type length)
 Appends buffer data to current output stream instance up to length specified.
 
error_type CALLING_CONVENTION MemoryBufferOutputStream_Flush (MemoryBufferOutputStreamHandle *handle)
 Flushes all pending data from the stream to it's destination.
 
error_type CALLING_CONVENTION MemoryBufferOutputStream_ToUnknown (MemoryBufferOutputStreamHandle *handle, IUnknownHandle **result)
 Reinterpret current object as IUnknownHandle.
 
error_type CALLING_CONVENTION MemoryBufferOutputStream_FromUnknown (IUnknownHandle *handle, MemoryBufferOutputStreamHandle **result)
 Convert IUnknownHandle to OutputStreamHandle.
 
error_type CALLING_CONVENTION MemoryBufferOutputStream_Release (MemoryBufferOutputStreamHandle *handle)
 Decrement the internal reference counter.
 

Additional Inherited Members

- Public Member Functions inherited from IUnknownHandle
error_type CALLING_CONVENTION IUnknown_AddRef (IUnknownHandle *handle)
 Increment the internal reference counter.
 

Detailed Description

An output stream that writes data to an internal memory buffer.

This stream implementation uses fmt::memory_buffer internally to accumulate character or binary data. It is typically used when dynamically collecting output into a contiguous memory block, for later retrieval or further processing.

The data written to this stream is stored in a resizable buffer, which can be accessed or converted to a BufferHandle after writing is complete.

Note
This stream is not thread-safe.

Friends And Related Symbol Documentation

◆ MemoryBufferOutputStream_Release()

error_type CALLING_CONVENTION MemoryBufferOutputStream_Release ( MemoryBufferOutputStreamHandle handle)
related

Decrement the internal reference counter.

When the internal counter reaches zero the object is deleted. Releasing already disposed object causes undefined behavior.

See also
IUnknown_Release

The documentation for this class was generated from the following file: