![]() |
PDFix SDK
6.19.0
|
#include <pdfix.h>
Public Member Functions | |
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... | |
PsStream class.
A PsStream is a data stream that may be a buffer in memory, a file, or an arbitrary user-written procedure. You typically would use an PsStream to import/export data to/from/ a PDF file. PsStream methods allow you to open and close streams, and to read and write data.
|
pure virtual |
Destroys PsStream resources.
|
pure virtual |
Flush stream data. Synchronize the stream buffer with its controlled output sequence.
|
pure virtual |
Gets the current seek position in a stream. This is the position at which the next read or write will begin.
|
pure virtual |
Gets the current size of a stream.
|
pure virtual |
Gets the type of a stream.
|
pure virtual |
Checks if the current position is end of stream.
|
pure virtual |
Reads data from PsStream into memory.
buffer | (Filled by the method) A buffer into which data is written. |
offset | The position to start read from. |
size | The number of bytes to read. |
|
pure virtual |
Writes data from a memory buffer into a stream, beginning at the offset position.
buffer | A buffer holding the data that is to be written. The buffer must be able to hold at least count bytes. |
offset | The position to seek. |
size | The number of bytes to write. |