PsProcStream class.
More...
#include <pdfix.h>
|
| 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.
|
| 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.
|
◆ SetDestroyProc()
Sets a user-supplied procedure to call when the the stream is destroyed.
- Parameters
-
| proc | A user-supplied callback to call when the stream is destroyed. |
| data | A pointer to user-supplied data to pass to proc each time it is called. |
- Returns
- true if callback was set, false otherwise.
◆ SetGetSizeProc()
Sets a user-supplied procedure to call when the the stream is destroyed.
- Parameters
-
| proc | A user-supplied callback to call when the stream is destroyed. |
| data | A pointer to user-supplied data to pass to proc each time it is called. |
- Returns
- true if callback was set, false otherwise.
◆ SetReadProc()
Sets a user-supplied procedure to call when the read event occurs.
- Parameters
-
| proc | A user-supplied callback to call when the read event occurs. |
| data | A pointer to user-supplied data to pass to proc each time it is called. |
- Returns
- true if callback was set, false otherwise.
◆ SetWriteProc()
Sets a user-supplied procedure to call when the write event occurs.
- Parameters
-
| proc | A user-supplied callback to call when the write event occurs. |
| data | A pointer to user-supplied data to pass to proc each time it is called. |
- Returns
- true if callback was set, false otherwise.