PDFix SDK  6.5.0
PsMemoryStream Struct Referenceabstract

PsMemoryStream class. More...

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 ()=0
 Checks if the current position is end of stream. More...
 
virtual int GetSize ()=0
 Gets the current size of a stream. More...
 
virtual bool Read (int offset, uint8_t *buffer, int size)=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 ()=0
 
virtual bool Flush ()=0
 
virtual void * GetStream ()=0
 
virtual PdfStreamType GetType ()=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.