Home
last modified time | relevance | path

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

12

/external/python/cpython3/Lib/
Dchunk.py70 self.size_read = 0
109 pos = pos + self.size_read
115 self.size_read = pos
120 return self.size_read
130 if self.size_read >= self.chunksize:
133 size = self.chunksize - self.size_read
134 if size > self.chunksize - self.size_read:
135 size = self.chunksize - self.size_read
137 self.size_read = self.size_read + len(data)
138 if self.size_read == self.chunksize and \
[all …]
/external/python/cpython2/Lib/
Dchunk.py70 self.size_read = 0
109 pos = pos + self.size_read
115 self.size_read = pos
120 return self.size_read
130 if self.size_read >= self.chunksize:
133 size = self.chunksize - self.size_read
134 if size > self.chunksize - self.size_read:
135 size = self.chunksize - self.size_read
137 self.size_read = self.size_read + len(data)
138 if self.size_read == self.chunksize and \
[all …]
Dwave.py245 if nitems * self._sampwidth > chunk.chunksize - chunk.size_read:
246 nitems = (chunk.chunksize - chunk.size_read) // self._sampwidth
249 chunk.size_read = chunk.size_read + nitems * self._sampwidth
252 chunk.size_read = chunk.size_read + nitems * self._sampwidth
/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/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()
Dfile_stream.cc444 size_t* size_read, in ReadNonBlocking() argument
457 *size_read = 0; in ReadNonBlocking()
466 *size_read = read; in ReadNonBlocking()
Dtls_stream.h54 size_t* size_read,
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,
/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/mesa3d/src/intel/compiler/
Dbrw_fs_copy_propagation.cpp50 uint8_t size_read; member
180 acp[i]->src, acp[i]->size_read)) { in setup_initial_values()
386 if (!region_contained_in(inst->src[arg], inst->size_read(arg), in try_copy_propagate()
544 if (!region_contained_in(inst->src[i], inst->size_read(i), in try_constant_propagate()
761 inst->src[0], inst->size_read(0))) || in can_propagate_from()
808 if (regions_overlap(entry->src, entry->size_read, in opt_copy_propagation_local()
823 entry->size_read = inst->size_read(0); in opt_copy_propagation_local()
840 entry->size_read = inst->size_read(i); in opt_copy_propagation_local()
Dbrw_ir_fs.h347 unsigned size_read(int arg) const;
444 inst->size_read(i) - in regs_read()
445 MIN2(inst->size_read(i), reg_padding(inst->src[i])), in regs_read()
Dbrw_vec4_live_variables.cpp79 for (unsigned j = 0; j < DIV_ROUND_UP(inst->size_read(i), 16); j++) { in setup_def_use()
258 for (unsigned j = 0; j < DIV_ROUND_UP(inst->size_read(i), 16); j++) { in calculate_live_intervals()
Dbrw_fs_cmod_propagation.cpp92 inst->src[0], inst->size_read(0))) { in opt_cmod_propagation_local()
Dbrw_ir_vec4.h288 unsigned size_read(unsigned arg) const;
431 return DIV_ROUND_UP(reg_offset(inst->src[i]) % reg_size + inst->size_read(i), in regs_read()
/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()

12