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

#include <PdfInputStream.h>

Inheritance diagram for PoDoFo::PdfMemoryInputStream:
PoDoFo::PdfInputStream

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

Parameters
pBufferbuffer to read from
lBufferLenlength of the buffer

Member Function Documentation

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

Read data from the input stream

Parameters
pBufferthe data will be stored into this buffer
lLenthe size of the buffer and number of bytes that will be read
Returns
the number of bytes read, -1 if an error ocurred and zero if no more bytes are available for reading.

Implements PoDoFo::PdfInputStream.