PDFix SDK  9.0.0
Loading...
Searching...
No Matches
PsMemoryStream Struct Referenceabstract

PsMemoryStream class. More...

#include <pdfix.h>

Inheritance diagram for PsMemoryStream:
PsStream

Public Member Functions

virtual bool Resize (int size)=0
 Expands the current size of a memory stream.
Public Member Functions inherited from PsStream
virtual void Destroy ()=0
 Destroys PsStream resources.
virtual bool IsEof () const =0
 Checks if the current position is end of stream.
virtual int GetSize () const =0
 Gets the current size of a stream.
virtual bool Read (int offset, uint8_t *buffer, int size) const =0
 Reads data from PsStream into memory.
virtual bool Write (int offset, const uint8_t *buffer, int size)=0
 Writes data from a memory buffer into a stream, beginning at the offset position.
virtual int GetPos () const =0
virtual bool Flush () const =0
virtual void * GetStream () const =0
virtual PdfStreamType GetType () const =0
 Gets the type of a stream.

Detailed Description

Member Function Documentation

◆ Resize()

virtual bool PsMemoryStream::Resize ( int size)
pure virtual

Expands the current size of a memory stream.

Parameters
sizeA new size of the stream.
Returns
true if the operation was successful, false otherwise.