Searched refs:nNewLength (Results 1 – 2 of 2) sorted by relevance
364 void ByteString::ReallocBeforeWrite(size_t nNewLength) { in ReallocBeforeWrite() argument365 if (m_pData && m_pData->CanOperateInPlace(nNewLength)) in ReallocBeforeWrite()368 if (nNewLength == 0) { in ReallocBeforeWrite()373 RetainPtr<StringData> pNewData(StringData::Create(nNewLength)); in ReallocBeforeWrite()375 size_t nCopyLength = std::min(m_pData->m_nDataLength, nNewLength); in ReallocBeforeWrite()385 void ByteString::AllocBeforeWrite(size_t nNewLength) { in AllocBeforeWrite() argument386 if (m_pData && m_pData->CanOperateInPlace(nNewLength)) in AllocBeforeWrite()389 if (nNewLength == 0) { in AllocBeforeWrite()394 m_pData.Reset(StringData::Create(nNewLength)); in AllocBeforeWrite()397 void ByteString::ReleaseBuffer(size_t nNewLength) { in ReleaseBuffer() argument[all …]
531 void WideString::ReallocBeforeWrite(size_t nNewLength) { in ReallocBeforeWrite() argument532 if (m_pData && m_pData->CanOperateInPlace(nNewLength)) in ReallocBeforeWrite()535 if (nNewLength == 0) { in ReallocBeforeWrite()540 RetainPtr<StringData> pNewData(StringData::Create(nNewLength)); in ReallocBeforeWrite()542 size_t nCopyLength = std::min(m_pData->m_nDataLength, nNewLength); in ReallocBeforeWrite()552 void WideString::AllocBeforeWrite(size_t nNewLength) { in AllocBeforeWrite() argument553 if (m_pData && m_pData->CanOperateInPlace(nNewLength)) in AllocBeforeWrite()556 if (nNewLength == 0) { in AllocBeforeWrite()561 m_pData.Reset(StringData::Create(nNewLength)); in AllocBeforeWrite()564 void WideString::ReleaseBuffer(size_t nNewLength) { in ReleaseBuffer() argument[all …]