Home
last modified time | relevance | path

Searched refs:bytesRead (Results 1 – 19 of 19) sorted by relevance

/external/webkit/WebCore/platform/text/mac/
DTextCodecMac.cpp135 unsigned long bytesRead = 0; in decode() local
149 …ECConvertText(m_converterTEC, m_bufferedBytes, m_numBufferedBytes + bytesToPutInBuffer, &bytesRead, in decode()
151 ASSERT(bytesRead <= m_numBufferedBytes + bytesToPutInBuffer); in decode()
153 if (status == kTECPartialCharErr && bytesRead == 0) { in decode()
162 bytesRead = bytesToPutInBuffer; in decode()
168 if (bytesRead > m_numBufferedBytes) { in decode()
169 bytesRead -= m_numBufferedBytes; in decode()
172 bytesRead = 0; in decode()
183 status = TECConvertText(m_converterTEC, inputBuffer, inputBufferLength, &bytesRead, in decode()
185 ASSERT(static_cast<int>(bytesRead) <= inputBufferLength); in decode()
[all …]
/external/skia/tests/
DStreamTest.cpp33 int bytesRead = 0; in test_buffer() local
34 while (bytesRead < size) { in test_buffer()
38 REPORTER_ASSERT(reporter, bytesRead + ss <= size); in test_buffer()
40 memcmp(storage + bytesRead, storage2, ss) == 0); in test_buffer()
41 bytesRead += ss; in test_buffer()
43 REPORTER_ASSERT(reporter, bytesRead == size); in test_buffer()
/external/quake/src/com/android/quake/
DDownloaderActivity.java745 int bytesRead = is.read(mFileIOBuffer, 0, chunkSize); in readIntoDigest() local
746 if (bytesRead < 0) { in readIntoDigest()
749 updateDigest(digest, bytesRead); in readIntoDigest()
750 bytesToRead -= bytesRead; in readIntoDigest()
764 private void updateDigest(MessageDigest digest, int bytesRead) { in updateDigest() argument
765 if (bytesRead == mFileIOBuffer.length) { in updateDigest()
770 byte[] temp = new byte[bytesRead]; in updateDigest()
772 temp, 0, bytesRead); in updateDigest()
895 long bytesRead = downloadStream(is, os, digest); in downloadPart() local
898 if (expectedBytesRead != bytesRead) { in downloadPart()
[all …]
/external/skia/src/images/
DSkImageDecoder_libpvjpeg.cpp160 int32 bytesRead = stream->read(storage + bytesInStorage, in onDecode() local
162 if (bytesRead <= 0) { in onDecode()
163 SkDEBUGF(("SkPVJPEGImageDecoder: stream read returned %d\n", bytesRead)); in onDecode()
168 bytesInStorage += bytesRead; in onDecode()
Dbmpdecoderhelper.cpp234 int bytesRead = 0; in DoRLEDecode() local
239 bytesRead++; in DoRLEDecode()
256 if ((bytesRead & 1) && pos_ < len_) { in DoRLEDecode()
/external/webkit/WebKitTools/DumpRenderTree/qt/
DImageDiff.cpp64 size_t bytesRead = fread(buffer, 1, bytesToRead, stdin); in main() local
65 data.write(reinterpret_cast<const char*>(buffer), bytesRead); in main()
66 imageSize -= static_cast<int>(bytesRead); in main()
/external/webkit/WebCore/platform/network/win/
DResourceHandleWin.cpp413 DWORD bytesRead = 0; in fileLoadTimer() local
418 result = ReadFile(d->m_fileHandle, &buffer, bufferSize, &bytesRead, NULL); in fileLoadTimer()
419 if (result && bytesRead) in fileLoadTimer()
420 client()->didReceiveData(this, buffer, bytesRead, 0); in fileLoadTimer()
422 } while (result && bytesRead); in fileLoadTimer()
/external/icu4c/io/
Dustdio.c397 int32_t bytesRead; in ufile_fill_uchar_buffer() local
432 bytesRead = (int32_t)(retStr ? uprv_strlen(charBuffer) : 0); in ufile_fill_uchar_buffer()
436 bytesRead = (int32_t)fread(charBuffer, in ufile_fill_uchar_buffer()
445 mySourceEnd = charBuffer + bytesRead; in ufile_fill_uchar_buffer()
461 u_charsToUChars(mySource, myTarget, bytesRead); in ufile_fill_uchar_buffer()
462 myTarget += bytesRead; in ufile_fill_uchar_buffer()
/external/chromium/third_party/icu/source/io/
Dustdio.c397 int32_t bytesRead; in ufile_fill_uchar_buffer() local
432 bytesRead = (int32_t)(retStr ? uprv_strlen(charBuffer) : 0); in ufile_fill_uchar_buffer()
436 bytesRead = (int32_t)fread(charBuffer, in ufile_fill_uchar_buffer()
445 mySourceEnd = charBuffer + bytesRead; in ufile_fill_uchar_buffer()
461 u_charsToUChars(mySource, myTarget, bytesRead); in ufile_fill_uchar_buffer()
462 myTarget += bytesRead; in ufile_fill_uchar_buffer()
/external/webkit/WebKitTools/DumpRenderTree/cg/
DImageDiffCG.cpp75 size_t bytesRead = fread(buffer, 1, bytesToRead, stdin); in createImageFromStdin() local
76 CFDataAppendBytes(data.get(), buffer, static_cast<CFIndex>(bytesRead)); in createImageFromStdin()
77 bytesRemaining -= static_cast<int>(bytesRead); in createImageFromStdin()
/external/webkit/WebCore/platform/network/cf/
DFormDataStreamCFNet.cpp228 CFIndex bytesRead = CFReadStreamRead(form->currentStream, buffer, bufferLength); in formRead() local
229 if (bytesRead < 0) { in formRead()
233 if (bytesRead > 0) { in formRead()
236 return bytesRead; in formRead()
/external/webkit/WebCore/platform/network/mac/
DFormDataStreamMac.mm241 CFIndex bytesRead = CFReadStreamRead(form->currentStream, buffer, bufferLength);
242 if (bytesRead < 0) {
246 if (bytesRead > 0) {
249 form->bytesSent += bytesRead;
257 return bytesRead;
/external/icu4c/tools/genrb/
Dgenrb.c350 int32_t bytesRead = T_FileStream_read(poolFile, poolBundle.fBytes, poolFileSize); in main() local
352 if (bytesRead != poolFileSize) { in main()
361 ds = udata_openSwapperForInputData(poolBundle.fBytes, bytesRead, in main()
368 ures_swap(ds, poolBundle.fBytes, bytesRead, poolBundle.fBytes, &status); in main()
/external/quake/quake/src/WinQuake/
Dmplpc.cpp734 int bytesRead; in recvfrom() local
757 bytesRead = FARPKL(&data->len); in recvfrom()
767 fmemcpyfrom(buf, data->data, len > bytesRead ? bytesRead : len); in recvfrom()
773 return bytesRead; in recvfrom()
/external/webkit/WebCore/platform/network/soup/
DResourceHandleSoup.cpp733 gssize bytesRead = g_input_stream_read_finish(d->m_inputStream, res, &error); in readCallback() local
747 if (!bytesRead) { in readCallback()
753 d->m_total += bytesRead; in readCallback()
754 client->didReceiveData(handle.get(), d->m_buffer, bytesRead, d->m_total); in readCallback()
/external/webkit/WebCore/plugins/win/
DPluginViewWin.cpp859 DWORD bytesRead; in handlePostReadFile() local
860 int retval = ReadFile(fileHandle, buffer.data(), attrs.nFileSizeLow, &bytesRead, 0); in handlePostReadFile()
864 if (retval == 0 || bytesRead != attrs.nFileSizeLow) in handlePostReadFile()
/external/webkit/WebCore/plugins/mac/
DPluginViewMac.cpp789 int bytesRead = fread(buffer.data(), 1, 0, fileHandle); in handlePostReadFile() local
793 if (bytesRead <= 0) in handlePostReadFile()
/external/webkit/WebCore/plugins/qt/
DPluginViewQt.cpp546 int bytesRead = fread(buffer.data(), 1, size, fileHandle); in handlePostReadFile() local
550 if (bytesRead <= 0) in handlePostReadFile()
/external/webkit/WebCore/plugins/gtk/
DPluginViewGtk.cpp604 int bytesRead = fread(buffer.data(), 1, 0, fileHandle); in handlePostReadFile() local
608 if (bytesRead <= 0) in handlePostReadFile()