Logo Search packages:      
Sourcecode: libpodofo version File versions  Download package

void PoDoFo::PdfRefCountedBuffer::Resize ( size_t  lSize ) [inline]

Resize the buffer to hold at least lSize bytes.

lSizethe size of bytes the buffer can at least hold

If the buffer is larger no operation is performed.

Definition at line 282 of file PdfRefCountedBuffer.h.

References ReallyResize().

Referenced by PdfRefCountedBuffer(), PoDoFo::PdfOutputDevice::Print(), PoDoFo::PdfParser::ReadXRefContents(), PoDoFo::PdfBufferOutputStream::Write(), and PoDoFo::PdfOutputDevice::Write().

    if (m_pBuffer && m_pBuffer->m_lRefCount == 1L  && static_cast<size_t>(m_pBuffer->m_lBufferSize) >= lSize)
        // We have a solely owned buffer the right size already; no need to
        // waste any time detaching or resizing it. Just let the client see
        // more of it (or less if they're shrinking their view).
        m_pBuffer->m_lVisibleSize = lSize;
        ReallyResize( lSize );

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index