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

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

Completed in 681 milliseconds