PoDoFo  0.9.4
Public Member Functions | List of all members
PoDoFo::PdfInputStream Class Referenceabstract

#include <PdfInputStream.h>

Inheritance diagram for PoDoFo::PdfInputStream:
PoDoFo::PdfDeviceInputStream PoDoFo::PdfFileInputStream PoDoFo::PdfMemoryInputStream

Public Member Functions

virtual pdf_long Read (char *pBuffer, pdf_long lLen, pdf_long *pTotalLeft=0)=0

Detailed Description

An interface for reading blocks of data from an a data source.

Member Function Documentation

virtual pdf_long PoDoFo::PdfInputStream::Read ( char *  pBuffer,
pdf_long  lLen,
pdf_long *  pTotalLeft = 0 
pure virtual

Read data from the input stream

pBufferthe data will be stored into this buffer
lLenthe size of the buffer and number of bytes that will be read
pTotalLefttotal bytes left (needed for AES IV and padding)
the number of bytes read, -1 if an error ocurred and zero if no more bytes are available for reading.

Implemented in PoDoFo::PdfDeviceInputStream, PoDoFo::PdfMemoryInputStream, and PoDoFo::PdfFileInputStream.