PDFix SDK  7.2.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. More...
 
- Public Member Functions inherited from PsStream
virtual void Destroy ()=0
 Destroys PsStream resources. More...
 
virtual bool IsEof () const =0
 Checks if the current position is end of stream. More...
 
virtual int GetSize () const =0
 Gets the current size of a stream. More...
 
virtual bool Read (int offset, uint8_t *buffer, int size) const =0
 Reads data from PsStream into memory. More...
 
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. More...
 
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. More...
 

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.