Home
last modified time | relevance | path

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

/external/pdfium/core/fxcrt/
Dcfx_blockbuffer.cpp14 const size_t kAllocStep = 1024 * 1024; variable
24 return kAllocStep; in GetAllocStep()
33 m_BlockArray.emplace_back(FX_Alloc(wchar_t, kAllocStep)); in GetAvailableBlock()
34 m_BufferSize += kAllocStep; in GetAvailableBlock()
37 return {m_BlockArray[realIndex / kAllocStep].get(), realIndex % kAllocStep}; in GetAvailableBlock()
42 m_BlockArray.emplace_back(FX_Alloc(wchar_t, kAllocStep)); in InitBuffer()
43 m_BufferSize = kAllocStep; in InitBuffer()
49 size_t blockIndex = realIndex / kAllocStep; in SetTextChar()
53 m_BlockArray.emplace_back(FX_Alloc(wchar_t, kAllocStep)); in SetTextChar()
54 m_BufferSize += kAllocStep; in SetTextChar()
[all …]