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

PsProcStream class. More...

#include <pdfix.h>

Inheritance diagram for PsCustomStream:
PsStream

Public Member Functions

virtual void SetReadProc (PsStreamReadProc proc)=0
 Sets a user-supplied procedure to call when the read event occurs.
virtual void SetWriteProc (PsStreamWriteProc proc)=0
 Sets a user-supplied procedure to call when the write event occurs.
virtual void SetDestroyProc (PsStreamDestroyProc proc)=0
 Sets a user-supplied procedure to call when the the stream is destroyed.
virtual void SetGetSizeProc (PsStreamGetSizeProc proc)=0
 Sets a user-supplied procedure to call when the the stream is destroyed.
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

PsProcStream class.

Member Function Documentation

◆ SetDestroyProc()

virtual void PsCustomStream::SetDestroyProc ( PsStreamDestroyProc proc)
pure virtual

Sets a user-supplied procedure to call when the the stream is destroyed.

Parameters
procA user-supplied callback to call when the stream is destroyed.
dataA pointer to user-supplied data to pass to proc each time it is called.
Returns
true if callback was set, false otherwise.

◆ SetGetSizeProc()

virtual void PsCustomStream::SetGetSizeProc ( PsStreamGetSizeProc proc)
pure virtual

Sets a user-supplied procedure to call when the the stream is destroyed.

Parameters
procA user-supplied callback to call when the stream is destroyed.
dataA pointer to user-supplied data to pass to proc each time it is called.
Returns
true if callback was set, false otherwise.

◆ SetReadProc()

virtual void PsCustomStream::SetReadProc ( PsStreamReadProc proc)
pure virtual

Sets a user-supplied procedure to call when the read event occurs.

Parameters
procA user-supplied callback to call when the read event occurs.
dataA pointer to user-supplied data to pass to proc each time it is called.
Returns
true if callback was set, false otherwise.

◆ SetWriteProc()

virtual void PsCustomStream::SetWriteProc ( PsStreamWriteProc proc)
pure virtual

Sets a user-supplied procedure to call when the write event occurs.

Parameters
procA user-supplied callback to call when the write event occurs.
dataA pointer to user-supplied data to pass to proc each time it is called.
Returns
true if callback was set, false otherwise.