Home
last modified time | relevance | path

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

/external/pdfium/core/fxcrt/
Dbytestring.cpp341 void ByteString::ReallocBeforeWrite(size_t nNewLength) { in ReallocBeforeWrite() argument
342 if (m_pData && m_pData->CanOperateInPlace(nNewLength)) in ReallocBeforeWrite()
345 if (nNewLength == 0) { in ReallocBeforeWrite()
350 RetainPtr<StringData> pNewData(StringData::Create(nNewLength)); in ReallocBeforeWrite()
352 size_t nCopyLength = std::min(m_pData->m_nDataLength, nNewLength); in ReallocBeforeWrite()
362 void ByteString::AllocBeforeWrite(size_t nNewLength) { in AllocBeforeWrite() argument
363 if (m_pData && m_pData->CanOperateInPlace(nNewLength)) in AllocBeforeWrite()
366 if (nNewLength == 0) { in AllocBeforeWrite()
371 m_pData.Reset(StringData::Create(nNewLength)); in AllocBeforeWrite()
374 void ByteString::ReleaseBuffer(size_t nNewLength) { in ReleaseBuffer() argument
[all …]
Dwidestring.cpp508 void WideString::ReallocBeforeWrite(size_t nNewLength) { in ReallocBeforeWrite() argument
509 if (m_pData && m_pData->CanOperateInPlace(nNewLength)) in ReallocBeforeWrite()
512 if (nNewLength == 0) { in ReallocBeforeWrite()
517 RetainPtr<StringData> pNewData(StringData::Create(nNewLength)); in ReallocBeforeWrite()
519 size_t nCopyLength = std::min(m_pData->m_nDataLength, nNewLength); in ReallocBeforeWrite()
529 void WideString::AllocBeforeWrite(size_t nNewLength) { in AllocBeforeWrite() argument
530 if (m_pData && m_pData->CanOperateInPlace(nNewLength)) in AllocBeforeWrite()
533 if (nNewLength == 0) { in AllocBeforeWrite()
538 m_pData.Reset(StringData::Create(nNewLength)); in AllocBeforeWrite()
541 void WideString::ReleaseBuffer(size_t nNewLength) { in ReleaseBuffer() argument
[all …]
Dwidestring.h182 void ReleaseBuffer(size_t nNewLength);
222 void ReallocBeforeWrite(size_t nNewLength);
223 void AllocBeforeWrite(size_t nNewLength);
Dbytestring.h164 void ReleaseBuffer(size_t nNewLength);