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

void PoDoFo::PdfRefCountedBuffer::Detach ( size_t  lExtraLen = 0 ) [inline, private]

Detach from a shared buffer or do nothing if we are the only one referencing the buffer.

Call this function before any operation modifiying the buffer!

Parameters:
lLenan additional parameter specifiying extra bytes to be allocated to optimize allocations of a new buffer.

Definition at line 273 of file PdfRefCountedBuffer.h.

References ReallyDetach().

Referenced by ReallyResize().

{
    if (m_pBuffer && m_pBuffer->m_lRefCount > 1L)
        ReallyDetach(lExtraLen);
}

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