Home
last modified time | relevance | path

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

12

/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/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/zlib/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/rust/crates/libz-sys/src/zlib/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()
327 size_t size_read, in ReadAllAsyncCallback() argument
330 size_to_read -= size_read; in ReadAllAsyncCallback()
[all …]
Dinput_stream_set.cc113 size_t* size_read, in ReadNonBlocking() argument
122 if (!stream->ReadNonBlocking(buffer, size_to_read, size_read, &eos, error)) in ReadNonBlocking()
125 if (*size_read > 0 || !eos) { in ReadNonBlocking()
133 *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.cc91 size_t* size_read,
151 size_t* size_read, in ReadNonBlocking() argument
158 *size_read = static_cast<size_t>(ret); in ReadNonBlocking()
166 *size_read = 0; in ReadNonBlocking()
181 *size_read = 0; in ReadNonBlocking()
497 size_t* size_read, in ReadNonBlocking() argument
502 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.cc200 size_t* size_read, in ReadNonBlocking() argument
211 *size_read = 0; in ReadNonBlocking()
231 *size_read = size_to_read; in ReadNonBlocking()
238 *size_read = 0; in ReadNonBlocking()
Dmemory_containers.h41 size_t* size_read,
76 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,
/external/webrtc/modules/audio_processing/test/
Dprotobuf_utils.cc25 int32_t size_read = input->gcount(); in ReadMessageBytesFromString() local
26 if (size_read != sizeof(int32_t)) in ReadMessageBytesFromString()
34 size_read = input->gcount(); in ReadMessageBytesFromString()
35 return size_read == size ? size : 0; in ReadMessageBytesFromString()
/external/marisa-trie/lib/marisa/grimoire/io/
Dreader.cc122 const int size_read = ::_read(fd_, buf, count); in read_data() local
127 const ::ssize_t size_read = ::read(fd_, buf, count); in read_data()
129 MARISA_THROW_IF(size_read <= 0, MARISA_IO_ERROR); in read_data()
130 buf = static_cast<char *>(buf) + size_read; in read_data()
131 size -= static_cast<std::size_t>(size_read); in read_data()
/external/google-breakpad/src/tools/windows/converter_exe/
Dhttp_download.cc286 DWORD size_read; in Download() local
301 &size_read); in Download()
302 total_read += size_read; in Download()
303 } while (read_result && (size_read != 0)); in Download()
311 } else if (size_read != 0) { in Download()
/external/libgav1/libgav1/examples/
Dfile_reader.cc124 const size_t size_read = in ReadTemporalUnit() local
126 if (size_read != ivf_frame_header.frame_size) { in ReadTemporalUnit()
130 tu_data->resize(size_read); in ReadTemporalUnit()
/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/google-breakpad/src/common/windows/
Dhttp_upload.cc188 DWORD size_read; in ReadResponse() local
192 bytes_available, &size_read); in ReadResponse()
194 if (return_code && size_read > 0) { in ReadResponse()
195 total_read += size_read; in ReadResponse()
196 response_body.append(&response_buffer[0], size_read); in ReadResponse()
/external/libbrillo/brillo/http/
Dhttp_connection_curl_test.cc75 size_t size_read = read_callback(buffer, sizeof(buffer), 1, connection); in DoPerform() local
76 if (size_read == CURL_READFUNC_ABORT) in DoPerform()
78 if (size_read == CURL_READFUNC_PAUSE) in DoPerform()
80 if (size_read == 0) in DoPerform()
82 request_body.append(buffer, size_read); in DoPerform()
/external/mesa3d/src/intel/compiler/
Dbrw_fs_copy_propagation.cpp52 unsigned size_read; member
236 entry->src, entry->size_read)) in setup_initial_values()
483 if (!region_contained_in(inst->src[arg], inst->size_read(arg), in try_copy_propagate()
705 if (!region_contained_in(inst->src[i], inst->size_read(i), in try_constant_propagate()
912 inst->src[0], inst->size_read(0))) || in can_propagate_from()
962 if (regions_overlap(entry->src, entry->size_read, in opt_copy_propagation_local()
978 entry->size_read += inst->size_read(i); in opt_copy_propagation_local()
997 entry->size_read = inst->size_read(i); in opt_copy_propagation_local()
Dbrw_ir_fs.h353 unsigned size_read(int arg) const;
464 inst->size_read(i) - in regs_read()
465 MIN2(inst->size_read(i), reg_padding(inst->src[i])), in regs_read()
599 inst->src[i], inst->size_read(i))) in is_copy_payload()
621 reg = byte_offset(reg, inst->size_read(i)); in is_identity_payload()
/external/arm-trusted-firmware/drivers/mmc/
Dmmc.c682 size_t size_read; in mmc_rpmb_read_blocks() local
685 size_read = mmc_read_blocks(lba, buf, size); in mmc_rpmb_read_blocks()
688 return size_read; in mmc_rpmb_read_blocks()
/external/webrtc/rtc_base/
Dfile_rotating_stream_unittest.cc99 size_t size_read = f.Read(buffer.get(), expected_length + 1); in VerifyFileContents() local
100 EXPECT_EQ(size_read, expected_length); in VerifyFileContents()
102 std::min(expected_length, size_read))); in VerifyFileContents()

12