PDFix SDK  6.5.0
PsCustomStream Struct Referenceabstract

PsProcStream class. More...

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

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.