Lines Matching refs:nBytesToWrite
111 DWORD nBytesToWrite,
327 DWORD nBytesToWrite, in writeAt() argument
347 if (!::WriteFile(m_hFile, pBuffer, nBytesToWrite, &dwDone, 0)) in writeAt()
440 DWORD nBytesToWrite = sal::static_int_cast< DWORD >(uBytesToWrite); in writeFileAt() local
446 if (!::WriteFile(m_hFile, pBuffer, nBytesToWrite, &dwDone, 0)) in writeFileAt()
454 return writeAt(nOffset, pBuffer, nBytesToWrite, pBytesWritten); in writeFileAt()
459 for (*pBytesWritten = 0; nBytesToWrite > 0; ) in writeFileAt()
471 if (nBytesToWrite >= m_bufsiz) in writeFileAt()
475 result = writeAt (nOffset, &(buffer[*pBytesWritten]), nBytesToWrite, &uDone); in writeFileAt()
478 if (uDone != nBytesToWrite) in writeFileAt()
481 nBytesToWrite -= sal::static_int_cast< DWORD >(uDone), *pBytesWritten += uDone; in writeFileAt()
493 SIZE_T const bytes = std::min(m_bufsiz - bufpos, (SIZE_T)nBytesToWrite); in writeFileAt()
495 nBytesToWrite -= bytes, *pBytesWritten += bytes, nOffset += bytes; in writeFileAt()