Home
last modified time | relevance | path

Searched refs:size_read (Results 1 – 22 of 22) sorted by relevance

/external/zlib/src/contrib/minizip/
Dminizip.c191 unsigned long size_read = 0; in getFileCrc() local
202 size_read = (int)fread(buf,1,size_buf,fin); in getFileCrc()
203 if (size_read < size_buf) in getFileCrc()
210 if (size_read>0) in getFileCrc()
211 calculate_crc = crc32(calculate_crc,buf,size_read); in getFileCrc()
212 total_read += size_read; in getFileCrc()
214 } while ((err == ZIP_OK) && (size_read>0)); in getFileCrc()
399 int size_read; local
475 size_read = (int)fread(buf,1,size_buf,fin);
476 if (size_read < size_buf)
[all …]
/external/libweave/src/
Dstreams.cc24 size_t size_read = std::min(size_to_read, data_.size() - read_position_); in Read() local
25 if (size_read > 0) in Read()
26 memcpy(buffer, data_.data() + read_position_, size_read); in Read()
27 read_position_ += size_read; in Read()
29 base::Bind(callback, size_read, nullptr), {}); in Read()
Ddata_encoding.cc138 size_t size_read = modp_b64_decode(reinterpret_cast<char*>(output->data()), in Base64Decode() local
140 if (size_read == MODP_B64_ERROR) { in Base64Decode()
144 output->resize(size_read); in Base64Decode()
/external/libbrillo/brillo/streams/
Dstream.cc67 size_t* size_read, in ReadBlocking() argument
71 if (!ReadNonBlocking(buffer, size_to_read, size_read, &eos, error)) in ReadBlocking()
74 if (*size_read > 0 || eos) in ReadBlocking()
89 size_t size_read = 0; in ReadAllBlocking() local
90 if (!ReadBlocking(buffer, size_to_read, &size_read, error)) in ReadAllBlocking()
93 if (size_read == 0) in ReadAllBlocking()
96 size_to_read -= size_read; in ReadAllBlocking()
97 buffer = AdvancePointer(buffer, size_read); in ReadAllBlocking()
325 size_t size_read, in ReadAllAsyncCallback() argument
328 size_to_read -= size_read; in ReadAllAsyncCallback()
[all …]
Dinput_stream_set.cc111 size_t* size_read, in ReadNonBlocking() argument
120 if (!stream->ReadNonBlocking(buffer, size_to_read, size_read, &eos, error)) in ReadNonBlocking()
123 if (*size_read > 0 || !eos) { in ReadNonBlocking()
131 *size_read = 0; in ReadNonBlocking()
Dmemory_containers.cc36 size_t* size_read, in Read() argument
52 if (size_read) in Read()
53 *size_read = size_to_read; in Read()
Dtls_stream.cc85 size_t* size_read,
145 size_t* size_read, in ReadNonBlocking() argument
152 *size_read = static_cast<size_t>(ret); in ReadNonBlocking()
160 *size_read = 0; in ReadNonBlocking()
175 *size_read = 0; in ReadNonBlocking()
491 size_t* size_read, in ReadNonBlocking() argument
496 return impl_->ReadNonBlocking(buffer, size_to_read, size_read, end_of_stream, in ReadNonBlocking()
Dstream.h237 size_t* size_read,
257 size_t* size_read,
477 size_t size_read,
Dfake_stream.cc199 size_t* size_read, in ReadNonBlocking() argument
210 *size_read = 0; in ReadNonBlocking()
230 *size_read = size_to_read; in ReadNonBlocking()
237 *size_read = 0; in ReadNonBlocking()
Dmemory_containers.h40 size_t* size_read,
75 size_t* size_read,
Dmemory_stream.cc142 size_t* size_read, in ReadNonBlocking() argument
151 *size_read = read; in ReadNonBlocking()
Dtls_stream.h54 size_t* size_read,
Dfile_stream.cc444 size_t* size_read, in ReadNonBlocking() argument
457 *size_read = 0; in ReadNonBlocking()
466 *size_read = read; in ReadNonBlocking()
Dinput_stream_set.h82 size_t* size_read,
Dfake_stream_unittest.cc41 size_t size_read = 0; in ReadString() local
42 bool ok = stream_->ReadNonBlocking(data.data(), data.size(), &size_read, in ReadString()
45 out_buffer->assign(data.data(), data.data() + size_read); in ReadString()
Dfile_stream.h117 size_t* size_read,
Dfake_stream.h99 size_t* size_read,
Dmemory_stream.h165 size_t* size_read,
/external/google-breakpad/src/common/windows/
Dhttp_upload.cc220 DWORD size_read; in ReadResponse() local
224 bytes_available, &size_read); in ReadResponse()
226 if (return_code && size_read > 0) { in ReadResponse()
227 total_read += size_read; in ReadResponse()
228 response_body.append(&response_buffer[0], size_read); in ReadResponse()
/external/libbrillo/brillo/
Ddata_encoding.cc142 size_t size_read = modp_b64_decode(reinterpret_cast<char*>(output->data()), in Base64Decode() local
144 if (size_read == MODP_B64_ERROR) { in Base64Decode()
148 output->resize(size_read); in Base64Decode()
/external/libbrillo/brillo/http/
Dhttp_connection_curl_unittest.cc74 size_t size_read = read_callback(buffer, sizeof(buffer), 1, connection); in DoPerform() local
75 if (size_read == CURL_READFUNC_ABORT) in DoPerform()
77 if (size_read == CURL_READFUNC_PAUSE) in DoPerform()
79 if (size_read == 0) in DoPerform()
81 request_body.append(buffer, size_read); in DoPerform()
/external/autotest/client/virt/
Dppm_utils.py165 size_read = fin.tell()
167 assert(size - size_read == width*height*3)