PoDoFo  0.9.4
Public Member Functions | List of all members
PoDoFo::PdfMemoryInputStream Class Reference

#include <PdfInputStream.h>

Inheritance diagram for PoDoFo::PdfMemoryInputStream:

Public Member Functions

 PdfMemoryInputStream (const char *pBuffer, pdf_long lBufferLen)
virtual pdf_long Read (char *pBuffer, pdf_long lLen, pdf_long *)

Detailed Description

An input stream that reads data from a memory buffer

Constructor & Destructor Documentation

PoDoFo::PdfMemoryInputStream::PdfMemoryInputStream ( const char *  pBuffer,
pdf_long  lBufferLen 

Open a file for reading data

pBufferbuffer to read from
lBufferLenlength of the buffer

Member Function Documentation

pdf_long PoDoFo::PdfMemoryInputStream::Read ( char *  pBuffer,
pdf_long  lLen,
pdf_long *   

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
the number of bytes read, -1 if an error ocurred and zero if no more bytes are available for reading.

Implements PoDoFo::PdfInputStream.