Searched refs:bytesToRead (Results 1 - 25 of 34) sorted by relevance

12

/macosx-10.10/WebCore-7600.1.25/platform/posix/
H A DSharedBufferPOSIX.cpp54 size_t bytesToRead = fileStat.st_size; local
55 if (fileStat.st_size < 0 || bytesToRead != static_cast<unsigned long long>(fileStat.st_size)) {
60 Vector<char> buffer(bytesToRead);
64 while ((bytesRead = read(fd, buffer.data() + totalBytesRead, bytesToRead - totalBytesRead)) > 0)
69 return totalBytesRead == bytesToRead ? SharedBuffer::adoptVector(buffer) : 0;
/macosx-10.10/WebCore-7600.1.25/platform/win/
H A DSharedBufferWin.cpp54 DWORD bytesToRead = GetFileSize(fileHandle, 0); local
57 if (bytesToRead != INVALID_FILE_SIZE || lastError == NO_ERROR) {
58 Vector<char> buffer(bytesToRead);
60 if (ReadFile(fileHandle, buffer.data(), bytesToRead, &bytesRead, 0) && bytesToRead == bytesRead)
/macosx-10.10/WebCore-7600.1.25/platform/
H A DFileStream.cpp123 int bytesToRead = (remaining < bufferSize) ? static_cast<int>(remaining) : bufferSize; local
125 if (bytesToRead > 0)
126 bytesRead = readFromFile(m_handle, buffer, bytesToRead);
/macosx-10.10/WebCore-7600.1.25/platform/network/
H A DBlobResourceHandle.cpp408 int bytesToRead = (length > remaining) ? static_cast<int>(remaining) : length; local
409 if (bytesToRead > m_totalRemainingSize)
410 bytesToRead = static_cast<int>(m_totalRemainingSize);
411 memcpy(buf, item.data->data() + item.offset() + m_currentItemReadSize, bytesToRead);
412 m_totalRemainingSize -= bytesToRead;
414 m_currentItemReadSize += bytesToRead;
420 return bytesToRead;
430 long long bytesToRead = m_itemLengthList[m_readItemCount] - m_currentItemReadSize; local
431 if (bytesToRead > m_totalRemainingSize)
432 bytesToRead
488 long long bytesToRead = item.length() - m_currentItemReadSize; local
505 long long bytesToRead = m_itemLengthList[m_readItemCount] - m_currentItemReadSize; local
[all...]
/macosx-10.10/tcl-105/tcl_ext/tkimg/tkimg/base/
H A DtkimgIO.c145 int bytesRead, bytesToRead;
164 bytesToRead = count;
166 while (bytesToRead > 0) {
168 printf ("bytesToRead=%d bytesRead=%d (bufStart=%d bufEnd=%d)\n",
169 bytesToRead, bytesRead, bufStart, bufEnd);
182 if (bufStart + bytesToRead <= bufEnd +1) {
184 printf("All in buffer: memcpy %d bytes\n", bytesToRead);
187 memcpy(dstPtr, readBuf + bufStart, bytesToRead);
188 bufStart += bytesToRead;
191 return bytesRead + bytesToRead;
142 int bytesRead, bytesToRead; local
[all...]
/macosx-10.10/Security-57031.1.35/Security/include/securityd_client/
H A DSharedMemoryClient.cpp104 SegmentOffsetType bytesToRead = (length <= bytesToEnd) ? length : bytesToEnd; local
107 memcpy (bptr, mDataPtr, bytesToRead);
108 bptr += bytesToRead;
111 mDataPtr += bytesToRead;
113 length -= bytesToRead;
H A DSharedMemoryClient.h30 void ReadData (void* buffer, SegmentOffsetType bytesToRead);
/macosx-10.10/Security-57031.1.35/Security/libsecurityd/lib/
H A DSharedMemoryClient.cpp104 SegmentOffsetType bytesToRead = (length <= bytesToEnd) ? length : bytesToEnd; local
107 memcpy (bptr, mDataPtr, bytesToRead);
108 bptr += bytesToRead;
111 mDataPtr += bytesToRead;
113 length -= bytesToRead;
H A DSharedMemoryClient.h30 void ReadData (void* buffer, SegmentOffsetType bytesToRead);
/macosx-10.10/xnu-2782.1.97/bsd/dev/random/
H A Drandomdev.c199 int bytesToRead = MIN(bytes_remaining, local
201 read_random(buffer, bytesToRead);
203 retCode = uiomove(buffer, bytesToRead, uio);
/macosx-10.10/WebCore-7600.1.25/platform/audio/mac/
H A DAudioFileReaderMac.cpp111 size_t bytesToRead = 0; local
115 bytesToRead = requestCount <= bytesAvailable ? requestCount : bytesAvailable;
116 memcpy(buffer, static_cast<const char*>(data) + position, bytesToRead);
118 bytesToRead = 0;
121 *actualCount = bytesToRead;
/macosx-10.10/WebCore-7600.1.25/platform/audio/ios/
H A DAudioFileReaderIOS.cpp114 size_t bytesToRead = 0; local
118 bytesToRead = requestCount <= bytesAvailable ? requestCount : bytesAvailable;
119 memcpy(buffer, static_cast<const char*>(data) + position, bytesToRead);
123 *actualCount = bytesToRead;
/macosx-10.10/WebCore-7600.1.25/platform/network/cf/
H A DFormDataStreamCFNet.cpp246 CFIndex bytesToRead = bufferLength; local
247 if (form->currentStreamRangeLength != BlobDataItem::toEndOfFile && form->currentStreamRangeLength < bytesToRead)
248 bytesToRead = static_cast<CFIndex>(form->currentStreamRangeLength);
249 CFIndex bytesRead = CFReadStreamRead(form->currentStream, buffer, bytesToRead);
/macosx-10.10/tcl-105/tcl_ext/tls/tls/
H A DtlsInt.h200 int bytesToRead));
/macosx-10.10/WebKit2-7600.1.25/Platform/IPC/unix/
H A DConnectionUnix.cpp351 size_t bytesToRead = m_readBuffer.size() - m_readBufferSize; local
352 ssize_t bytesRead = readBytesFromSocket(m_socketDescriptor, m_readBuffer.data() + m_readBufferSize, bytesToRead,
/macosx-10.10/Security-57031.1.35/Security/include/security_filedb/
H A DAtomicFile.cpp481 ssize_t bytesToRead = (ssize_t)mLength; local
482 while (bytesToRead > 0)
484 ssize_t bytesRead = ::read(mFileRef, mBuffer + pos, bytesToRead);
497 bytesToRead -= bytesRead;
/macosx-10.10/Security-57031.1.35/Security/libsecurity_filedb/lib/
H A DAtomicFile.cpp481 ssize_t bytesToRead = (ssize_t)mLength; local
482 while (bytesToRead > 0)
484 ssize_t bytesRead = ::read(mFileRef, mBuffer + pos, bytesToRead);
497 bytesToRead -= bytesRead;
/macosx-10.10/tcl-105/tcl84/tcl/generic/
H A DtclIO.c4294 Tcl_Read(chan, dst, bytesToRead)
4297 int bytesToRead; /* Maximum number of bytes to read. */
4312 return DoRead(chanPtr, dst, bytesToRead);
4339 Tcl_ReadRaw(chan, bufPtr, bytesToRead)
4342 int bytesToRead; /* Maximum number of bytes to read. */
4371 for (copied = 0; copied < bytesToRead; copied += copiedNow) {
4373 bytesToRead - copied);
4408 * The case of 'bytesToRead == 0' at this point cannot happen.
4412 bufPtr + copied, bytesToRead - copied, &result);
4425 if (nread < (bytesToRead
[all...]
/macosx-10.10/tcl-105/tcl_ext/trf/trf/generic/
H A DtransformInt.h562 int bytesToRead));
/macosx-10.10/tcl-105/tcl/tcl/generic/
H A DtclIO.c5008 int bytesToRead) /* Maximum number of bytes to read. */
5024 return DoRead(chanPtr, dst, bytesToRead);
5054 int bytesToRead) /* Maximum number of bytes to read. */
5083 for (copied = 0; copied < bytesToRead; copied += copiedNow) {
5085 bytesToRead - copied);
5124 * The case of 'bytesToRead == 0' at this point cannot happen.
5128 bufPtr + copied, bytesToRead - copied, &result);
5142 if (nread < (bytesToRead - copied)) {
5147 if (nread <= (bytesToRead - copied)) {
5396 * 'bytesToRead' ca
4951 Tcl_Read( Tcl_Channel chan, char *dst, int bytesToRead) argument
4996 Tcl_ReadRaw( Tcl_Channel chan, char *bufPtr, int bytesToRead) argument
5355 ReadBytes( ChannelState *statePtr, Tcl_Obj *objPtr, int bytesToRead, int *offsetPtr) argument
[all...]
/macosx-10.10/tcl-105/tcl_ext/trf/trf/patches/v8.1/
H A DtclIO.c3819 Tcl_Read(chan, dst, bytesToRead)
3822 int bytesToRead; /* Maximum number of bytes to read. */
3831 return DoRead(chanPtr, dst, bytesToRead);
3975 * 'bytesToRead' can safely be a very large number because
3992 ReadBytes(chanPtr, objPtr, bytesToRead, offsetPtr)
3994 int bytesToRead; /* Maximum number of characters to store,
4022 toRead = bytesToRead;
H A DtclIO.c.orig3495 Tcl_Read(chan, dst, bytesToRead)
3498 int bytesToRead; /* Maximum number of bytes to read. */
3507 return DoRead(chanPtr, dst, bytesToRead);
3651 * 'bytesToRead' can safely be a very large number because
3668 ReadBytes(chanPtr, objPtr, bytesToRead, offsetPtr)
3670 int bytesToRead; /* Maximum number of characters to store,
3698 toRead = bytesToRead;
/macosx-10.10/tcl-105/tcl_ext/trf/trf/patches/v8.1b3/
H A DtclIO.c3819 Tcl_Read(chan, dst, bytesToRead)
3822 int bytesToRead; /* Maximum number of bytes to read. */
3831 return DoRead(chanPtr, dst, bytesToRead);
3975 * 'bytesToRead' can safely be a very large number because
3992 ReadBytes(chanPtr, objPtr, bytesToRead, offsetPtr)
3994 int bytesToRead; /* Maximum number of characters to store,
4022 toRead = bytesToRead;
/macosx-10.10/tcl-105/tcl_ext/trf/trf/patches/v8.1a2/
H A DtclIO.c.orig3479 Tcl_Read(chan, dst, bytesToRead)
3482 int bytesToRead; /* Maximum number of bytes to read. */
3491 return DoRead(chanPtr, dst, bytesToRead);
3625 * 'bytesToRead' can safely be a very large number because
3642 ReadBytes(chanPtr, objPtr, bytesToRead, offsetPtr)
3644 int bytesToRead; /* Maximum number of characters to store,
3672 toRead = bytesToRead;
/macosx-10.10/tcl-105/tcl_ext/trf/trf/patches/v8.1b1/
H A DtclIO.c.orig3495 Tcl_Read(chan, dst, bytesToRead)
3498 int bytesToRead; /* Maximum number of bytes to read. */
3507 return DoRead(chanPtr, dst, bytesToRead);
3651 * 'bytesToRead' can safely be a very large number because
3668 ReadBytes(chanPtr, objPtr, bytesToRead, offsetPtr)
3670 int bytesToRead; /* Maximum number of characters to store,
3698 toRead = bytesToRead;

Completed in 566 milliseconds

12