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

123

/external/webkit/Source/WebCore/platform/
H A DFileStream.cpp125 int bytesRead = 0; local
127 bytesRead = readFromFile(m_handle, buffer, bytesToRead);
128 if (bytesRead < 0)
130 if (bytesRead > 0)
131 m_bytesProcessed += bytesRead;
133 return bytesRead;
/external/webkit/Source/WebCore/platform/posix/
H A DSharedBufferPOSIX.cpp64 ssize_t bytesRead; local
65 while ((bytesRead = read(fd, result->m_buffer.data() + totalBytesRead, bytesToRead - totalBytesRead)) > 0)
66 totalBytesRead += bytesRead;
/external/webkit/Source/WebCore/platform/win/
H A DSharedBufferWin.cpp59 DWORD bytesRead; local
60 if (ReadFile(fileHandle, buffer.data(), bytesToRead, &bytesRead, 0) && bytesToRead == bytesRead)
/external/webkit/Source/WebCore/platform/text/mac/
H A DTextCodecMac.cpp136 unsigned long bytesRead = 0; local
150 status = TECConvertText(m_converterTEC, m_bufferedBytes, m_numBufferedBytes + bytesToPutInBuffer, &bytesRead,
152 ASSERT(bytesRead <= m_numBufferedBytes + bytesToPutInBuffer);
154 if (status == kTECPartialCharErr && bytesRead == 0) {
163 bytesRead = bytesToPutInBuffer;
169 if (bytesRead > m_numBufferedBytes) {
170 bytesRead -= m_numBufferedBytes;
173 bytesRead = 0;
184 status = TECConvertText(m_converterTEC, inputBuffer, inputBufferLength, &bytesRead,
186 ASSERT(static_cast<int>(bytesRead) <
212 int bytesRead = 0; local
[all...]
/external/webkit/Source/WebCore/platform/brew/
H A DSharedBufferBrew.cpp64 int32 bytesRead; local
65 while ((bytesRead = IFILE_Read(file.get(), result->m_buffer.data() + totalBytesRead, fileSize - totalBytesRead)) > 0)
66 totalBytesRead += bytesRead;
/external/webkit/Source/WebCore/platform/network/
H A DBlobResourceHandle.cpp342 int bytesRead = 0; local
344 bytesRead = readDataSync(item, buf + offset, remaining);
346 bytesRead = readFileSync(item, buf + offset, remaining);
350 if (bytesRead > 0) {
351 offset += bytesRead;
352 remaining -= bytesRead;
407 int bytesRead = m_stream->read(buf, length); local
408 if (bytesRead < 0) {
412 if (!bytesRead) {
417 m_totalRemainingSize -= bytesRead;
486 didRead(int bytesRead) argument
491 consumeData(const char* data, int bytesRead) argument
584 notifyReceiveData(const char* data, int bytesRead) argument
[all...]
H A DBlobResourceHandle.h80 void consumeData(const char* data, int bytesRead);
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/file/
H A DBlenderInputStream.java173 int bytesRead = this.readBytes(identifier);
174 if (bytesRead != 7) {
175 throw new BlenderFileException("Error reading header identifier. Only " + bytesRead + " bytes read and there should be 7!");
194 bytesRead = this.readBytes(versionNumber);
195 if (bytesRead != 3) {
196 throw new BlenderFileException("Error reading version numberr. Only " + bytesRead + " bytes read and there should be 3!");
/external/skia/tests/
H A DStreamTest.cpp41 int bytesRead = 0; local
42 while (bytesRead < size) {
46 REPORTER_ASSERT(reporter, bytesRead + ss <= size);
48 memcmp(storage + bytesRead, storage2, ss) == 0);
49 bytesRead += ss;
51 REPORTER_ASSERT(reporter, bytesRead == size);
/external/jmonkeyengine/engine/src/jogg/com/jme3/audio/plugins/
H A DOGGLoader.java91 int bytesRead = 0, cnt = 0;
94 while (bytesRead <length) {
95 if ((cnt = vs.readPcm(buf, offset + bytesRead,length - bytesRead)) <= 0) {
98 System.out.println("bytesRead "+bytesRead);
100 for (int i = 0; i < bytesRead; i++) {
110 bytesRead += cnt;
113 swapBytes(buf, offset, bytesRead);
114 return bytesRead;
[all...]
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/src_rss/org/eclipse/releng/util/rss/
H A DRSSFeedUtil.java127 int bytesRead = 0;
128 while (bytesRead != -1)
130 bytesRead = source.read(buffer, 0, buffer.length);
131 if (bytesRead != -1)
133 destination.write(buffer, 0, bytesRead);
/external/okhttp/src/main/java/libcore/io/
H A DStreams.java82 int bytesRead = in.read(dst, offset, byteCount);
83 if (bytesRead < 0) {
86 offset += bytesRead;
87 byteCount -= bytesRead;
/external/skia/include/pipe/
H A DSkGPipe.h38 Status playback(const void* data, size_t length, size_t* bytesRead = NULL,
/external/webkit/Source/WebCore/platform/network/soup/
H A DSocketStreamHandleSoup.cpp125 void SocketStreamHandle::readBytes(signed long bytesRead, GError* error) argument
132 if (!bytesRead) {
139 m_client->didReceiveData(this, m_readBuffer, bytesRead);
258 gssize bytesRead = g_input_stream_read_finish(stream, result, &error.outPtr()); local
264 handle->readBytes(bytesRead, error.get());
/external/apache-harmony/auth/src/test/java/common/org/apache/harmony/auth/tests/module/
H A DKrb5LoginModuleTest.java184 int bytesRead = BUF_SIZE;
185 while (bytesRead == BUF_SIZE) {
187 bytesRead = packet.getLength();
/external/webkit/Tools/DumpRenderTree/qt/
H A DImageDiff.cpp65 size_t bytesRead = fread(buffer, 1, bytesToRead, stdin); local
66 data.write(reinterpret_cast<const char*>(buffer), bytesRead); local
67 imageSize -= static_cast<int>(bytesRead);
/external/apache-harmony/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/
H A DCipherTest.java280 int bytesRead = is.read(input, 0, 256);
281 while (bytesRead > 0) {
282 byte[] output = c.update(input, 0, bytesRead);
286 bytesRead = is.read(input, 0, 256);
329 int bytesRead = is.read(input, 0, 256);
330 while (bytesRead > 0) {
331 byte[] output = c.update(input, 0, bytesRead);
335 bytesRead = is.read(input, 0, 256);
/external/webkit/Source/WebCore/platform/text/gtk/
H A DTextCodecGtk.cpp447 gsize bytesRead = 0; local
477 &bytesRead, &bytesWritten,
479 input += bytesRead;
480 inputLength -= bytesRead;
528 gsize bytesRead = 0; local
542 &bytesRead, &bytesWritten, local
544 input += bytesRead;
545 inputLength -= bytesRead;
/external/webkit/Source/WebKit/android/WebCoreSupport/
H A DWebRequest.cpp518 int bytesRead = 0; local
520 if (!read(&bytesRead)) {
526 // bytesRead == 0 indicates finished
527 if (!bytesRead)
532 m_urlLoader->maybeCallOnMainThread(NewRunnableMethod(m_urlLoader.get(), &WebUrlLoaderClient::didReceiveData, m_networkBuffer, bytesRead));
537 bool WebRequest::read(int* bytesRead) argument
544 return m_request->Read(m_networkBuffer, kInitialReadBufSize, bytesRead);
556 void WebRequest::OnReadCompleted(net::URLRequest* request, int bytesRead) argument
563 m_urlLoader.get(), &WebUrlLoaderClient::didReceiveData, m_networkBuffer, bytesRead));
H A DWebRequest.h77 virtual void OnReadCompleted(net::URLRequest*, int bytesRead);
97 bool read(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/Source/WebCore/fileapi/
H A DFileStreamProxy.cpp168 static void didRead(ScriptExecutionContext*, FileStreamProxy* proxy, int bytesRead) argument
171 proxy->client()->didRead(bytesRead);
181 int bytesRead = m_stream->read(buffer, length); local
182 m_context->postTask(createCallbackTask(&didRead, this, bytesRead));
/external/valgrind/main/callgrind/
H A Dcommand.c357 Int fd, bytesRead = 0, do_kill = 0; local
388 bytesRead = VG_(read)(fd,cmdBuffer,500);
392 if (bytesRead>0) {
400 while((bytesRead>0) && *cmdPos) {
404 while((bytesRead>0) && *cmdNextLine && (*cmdNextLine != '\n')) {
406 bytesRead--;
408 if ((bytesRead>0) && (*cmdNextLine == '\n')) {
411 bytesRead--;
/external/skia/src/images/
H A Dbmpdecoderhelper.cpp227 int bytesRead = 0; local
232 bytesRead++;
249 if ((bytesRead & 1) && pos_ < len_) {
/external/webkit/Source/WebCore/platform/gtk/
H A DFileSystemGtk.cpp307 gssize bytesRead = g_input_stream_read(g_io_stream_get_input_stream(G_IO_STREAM(handle)), local
309 if (bytesRead >= 0)
310 return bytesRead;

Completed in 625 milliseconds

123