Lines Matching refs:pBuf

123 	sal_uInt8*			pBuf = NULL;  in ImplSysReadConfig()  local
135 pBuf = new sal_uInt8[static_cast< std::size_t >(nPos)]; in ImplSysReadConfig()
136 if( aFile.read( pBuf, nPos, nRead ) == ::osl::FileBase::E_None && nRead == nPos ) in ImplSysReadConfig()
140 if (nRead > 2 && memcmp(pBuf, BOM, 3) == 0) in ImplSysReadConfig()
143 rtl_moveMemory(pBuf, pBuf + 3, sal::static_int_cast<sal_Size>(nRead * sizeof(sal_uInt8)) ); in ImplSysReadConfig()
153 delete[] pBuf; in ImplSysReadConfig()
154 pBuf = NULL; in ImplSysReadConfig()
160 return pBuf; in ImplSysReadConfig()
166 const sal_uInt8* pBuf, sal_uIntPtr nBufLen, sal_Bool rbIsUTF8BOM, sal_uIntPtr& rTimeStamp ) in ImplSysWriteConfig() argument
192 if( aFile.write( pBuf, nBufLen, nWritten ) == ::osl::FileBase::E_None && nWritten == nBufLen ) in ImplSysWriteConfig()
273 const sal_uInt8* pBuf, sal_uInt64 nLen ) in ImplMakeConfigList() argument
294 if ( pBuf[i] == 0x1A ) in ImplMakeConfigList()
298 while ( (pBuf[i] == ' ') || (pBuf[i] == '\t') ) in ImplMakeConfigList()
303 pLine = pBuf+i; in ImplMakeConfigList()
306 while ( (i < nLen) && pBuf[i] && (pBuf[i] != '\r') && (pBuf[i] != '\n') && in ImplMakeConfigList()
307 (pBuf[i] != 0x1A) ) in ImplMakeConfigList()
314 (pBuf[i] != pBuf[i+1]) && in ImplMakeConfigList()
315 ((pBuf[i+1] == '\r') || (pBuf[i+1] == '\n')) ) in ImplMakeConfigList()
451 sal_uInt8* pBuf; in ImplGetConfigBuffer() local
529 pBuf = pWriteBuf; in ImplGetConfigBuffer()
536 *pBuf = '['; pBuf++; in ImplGetConfigBuffer()
537 memcpy( pBuf, pGroup->maGroupName.GetBuffer(), pGroup->maGroupName.Len() ); in ImplGetConfigBuffer()
538 pBuf += pGroup->maGroupName.Len(); in ImplGetConfigBuffer()
539 *pBuf = ']'; pBuf++; in ImplGetConfigBuffer()
540 *pBuf = aLineEndBuf[0]; pBuf++; in ImplGetConfigBuffer()
543 *pBuf = aLineEndBuf[1]; pBuf++; in ImplGetConfigBuffer()
553 memcpy( pBuf, pKey->maValue.GetBuffer(), nValueLen ); in ImplGetConfigBuffer()
554 pBuf += nValueLen; in ImplGetConfigBuffer()
556 *pBuf = aLineEndBuf[0]; pBuf++; in ImplGetConfigBuffer()
559 *pBuf = aLineEndBuf[1]; pBuf++; in ImplGetConfigBuffer()
565 memcpy( pBuf, pKey->maKey.GetBuffer(), nKeyLen ); in ImplGetConfigBuffer()
566 pBuf += nKeyLen; in ImplGetConfigBuffer()
567 *pBuf = '='; pBuf++; in ImplGetConfigBuffer()
568 memcpy( pBuf, pKey->maValue.GetBuffer(), nValueLen ); in ImplGetConfigBuffer()
569 pBuf += nValueLen; in ImplGetConfigBuffer()
570 *pBuf = aLineEndBuf[0]; pBuf++; in ImplGetConfigBuffer()
573 *pBuf = aLineEndBuf[1]; pBuf++; in ImplGetConfigBuffer()
584 *pBuf = aLineEndBuf[0]; pBuf++; in ImplGetConfigBuffer()
587 *pBuf = aLineEndBuf[1]; pBuf++; in ImplGetConfigBuffer()
607 sal_uInt8* pBuf = ImplSysReadConfig( pData->maFileName, nRead, bRead, bIsUTF8BOM, nTimeStamp ); in ImplReadConfig() local
610 if ( pBuf ) in ImplReadConfig()
612 ImplMakeConfigList( pData, pBuf, nRead ); in ImplReadConfig()
613 delete[] pBuf; in ImplReadConfig()
639 sal_uInt8* pBuf = ImplGetConfigBuffer( pData, nBufLen ); in ImplWriteConfig() local
640 if ( pBuf ) in ImplWriteConfig()
642 …if ( ImplSysWriteConfig( pData->maFileName, pBuf, nBufLen, pData->mbIsUTF8BOM, pData->mnTimeStamp … in ImplWriteConfig()
644 delete[] pBuf; in ImplWriteConfig()