Home
last modified time | relevance | path

Searched refs:m_AllocSize (Results 1 – 2 of 2) sorted by relevance

/external/pdfium/core/fxcrt/
Dfx_basic_buffer.cpp17 : m_AllocStep(0), m_AllocSize(0), m_DataSize(0) {} in CFX_BinaryBuf()
20 : m_AllocStep(0), m_AllocSize(size), m_DataSize(size) { in CFX_BinaryBuf()
43 m_AllocSize = 0; in DetachBuffer()
49 if (m_AllocSize < size) in EstimateSize()
56 if (m_AllocSize >= new_size.ValueOrDie()) in ExpandBuf()
59 int alloc_step = std::max(128, m_AllocStep ? m_AllocStep : m_AllocSize / 4); in ExpandBuf()
63 m_AllocSize = new_size.ValueOrDie(); in ExpandBuf()
65 ? FX_Realloc(uint8_t, m_pBuffer.release(), m_AllocSize) in ExpandBuf()
66 : FX_Alloc(uint8_t, m_AllocSize)); in ExpandBuf()
Dfx_basic.h54 FX_STRSIZE m_AllocSize; variable