PoDoFo 0.9.20
Protected Member Functions | List of all members
PoDoFo::PdfCanvasInputDevice Class Referencefinal

#include <PdfCanvasInputDevice.h>

Inheritance diagram for PoDoFo::PdfCanvasInputDevice:
PoDoFo::InputStreamDevice PoDoFo::InputStream

Protected Member Functions

size_t readBuffer (char *buffer, size_t size, bool &eof) override
 
bool readChar (char &ch) override
 
bool peek (char &ch) const override
 
- Protected Member Functions inherited from PoDoFo::InputStreamDevice
void checkRead () const override
 

Additional Inherited Members

- Public Member Functions inherited from PoDoFo::InputStreamDevice
bool Peek (char &ch) const
 
- Public Member Functions inherited from PoDoFo::InputStream
void Read (char *buffer, size_t size)
 
size_t Read (char *buffer, size_t size, bool &eof)
 
char ReadChar ()
 
bool Read (char &ch)
 

Detailed Description

There are Pdfs spanning delimiters or begin/end tags into contents streams. Let's create a device correctly spanning I/O reads into these

Member Function Documentation

◆ peek()

bool PdfCanvasInputDevice::peek ( char &  ch) const
overrideprotectedvirtual

Peek at next char in stream. /returns true if success, false if EOF

Implements PoDoFo::InputStreamDevice.

◆ readBuffer()

size_t PdfCanvasInputDevice::readBuffer ( char *  buffer,
size_t  size,
bool &  eof 
)
overrideprotectedvirtual

Read a buffer from the stream /param eof true if the stream reached eof during read /returns number of read bytes

Implements PoDoFo::InputStream.

◆ readChar()

bool PdfCanvasInputDevice::readChar ( char &  ch)
overrideprotectedvirtual

Read the next char in stream. /returns true if success, false if EOF

Reimplemented from PoDoFo::InputStream.