Home
last modified time | relevance | path

Searched refs:bytes_to_read (Results 1 – 16 of 16) sorted by relevance

/external/bsdiff/
Dbspatch.cc96 size_t bytes_to_read = std::min(size, buf_size); in ReadBZ2AndWriteAll() local
97 if (!ReadBZ2(pfbz2, buf, bytes_to_read)) in ReadBZ2AndWriteAll()
99 if (!WriteAll(file, buf, bytes_to_read)) in ReadBZ2AndWriteAll()
101 size -= bytes_to_read; in ReadBZ2AndWriteAll()
300 size_t bytes_to_read = std::min(chunk_size, old_buf.size()); in bspatch() local
301 if (!old_file->Read(old_buf.data(), bytes_to_read, &read_bytes)) in bspatch()
/external/autotest/client/cros/
Dnetwork.py249 bytes_to_read = min(bytes_left, _MAX_FETCH_READ_BYTES)
250 bytes_read = len(result.read(bytes_to_read))
252 if bytes_read != bytes_to_read:
255 (bytes_to_read, bytes_read))
/external/libchrome/base/
Dsync_socket_posix.cc184 const size_t bytes_to_read = std::min(Peek(), length - bytes_read_total); in ReceiveWithTimeout() local
187 if (!bytes_to_read) in ReceiveWithTimeout()
191 Receive(static_cast<char*>(buffer) + bytes_read_total, bytes_to_read); in ReceiveWithTimeout()
193 if (bytes_received != bytes_to_read) in ReceiveWithTimeout()
/external/lldb/source/Plugins/Process/elf-core/
DProcessElfCore.cpp292 size_t bytes_to_read = size; // Number of bytes to read from the core file in DoReadMemory() local
300 if (bytes_to_read > bytes_left) in DoReadMemory()
302 zero_fill_size = bytes_to_read - bytes_left; in DoReadMemory()
303 bytes_to_read = bytes_left; in DoReadMemory()
307 if (bytes_to_read) in DoReadMemory()
308 bytes_copied = core_objfile->CopyData(offset + file_start, bytes_to_read, buf); in DoReadMemory()
/external/chromium-trace/catapult/third_party/gsutil/gslib/
Dhashing_helper.py469 def _CatchUp(self, bytes_to_read): argument
485 if bytes_to_read >= MIN_SIZE_COMPUTE_LOGGING:
491 bytes_remaining = bytes_to_read
499 self._digesters_current_mark += bytes_to_read
Dcopy_helper.py2146 bytes_to_read = min(DEFAULT_FILE_BUFFER_SIZE,
2148 data = fp.read(bytes_to_read)
2149 bytes_digested += bytes_to_read
/external/autotest/client/cros/i2c/
Dusb_to_i2c.py80 def read(self, slave_addr, bytes_to_read): argument
160 def read(self, slave_addr, bytes_to_read): argument
163 bytes_to_read,
/external/lldb/source/Plugins/Process/mach-core/
DProcessMachCore.cpp422 size_t bytes_to_read = size; in DoReadMemory() local
423 if (bytes_to_read > bytes_left) in DoReadMemory()
424 bytes_to_read = bytes_left; in DoReadMemory()
425 …eturn core_objfile->CopyData (core_memory_entry->data.GetRangeBase() + offset, bytes_to_read, buf); in DoReadMemory()
/external/sfntly/cpp/src/sfntly/data/
Dfont_input_stream.cc83 int32_t bytes_to_read = in Read() local
86 int32_t bytes_read = stream_->Read(b, offset, bytes_to_read); in Read()
/external/google-benchmark/src/
Dsysinfo.cc152 const size_t bytes_to_read = sizeof(line) - 1 - linelen; in InitializeSystemInfo() local
153 CHECK(bytes_to_read > 0); // because the memmove recovered >=1 bytes in InitializeSystemInfo()
154 chars_read = read(fd, line + linelen, bytes_to_read); in InitializeSystemInfo()
/external/libpcap/
Dsf-pcap-ng.c231 read_bytes(FILE *fp, void *buf, size_t bytes_to_read, int fail_on_eof, in read_bytes() argument
236 amt_read = fread(buf, 1, bytes_to_read, fp); in read_bytes()
237 if (amt_read != bytes_to_read) { in read_bytes()
247 (unsigned long)bytes_to_read, in read_bytes()
/external/libevent/
Dbufferevent_openssl.c720 bytes_to_read(struct bufferevent_openssl *bev) in bytes_to_read() function
780 n_to_read = bytes_to_read(bev_ssl); in consider_reading()
817 n_to_read = bytes_to_read(bev_ssl); in consider_reading()
DChangeLog224 o Move SSL rate-limit enforcement into bytes_to_read() (96c562f)
/external/pdfium/third_party/libopenjpeg20/
Djp2.c1142 OPJ_UINT32 bytes_to_read = (OPJ_UINT32)((channel_size[i]+7)>>3); in opj_jp2_read_pclr() local
1144 if (bytes_to_read > sizeof(OPJ_UINT32)) in opj_jp2_read_pclr()
1145 bytes_to_read = sizeof(OPJ_UINT32); in opj_jp2_read_pclr()
1146 …p_pclr_header_size < (ptrdiff_t)(p_pclr_header_data - orig_header_data) + (ptrdiff_t)bytes_to_read) in opj_jp2_read_pclr()
1149 opj_read_bytes(p_pclr_header_data, &l_value , bytes_to_read); /* Cji */ in opj_jp2_read_pclr()
1150 p_pclr_header_data += bytes_to_read; in opj_jp2_read_pclr()
/external/lldb/source/Target/
DTarget.cpp1412 addr_t bytes_to_read = std::min<addr_t>(bytes_left, cache_line_bytes_left); in ReadCStringFromMemory() local
1413 size_t bytes_read = ReadMemory (address, false, curr_dst, bytes_to_read, error); in ReadCStringFromMemory()
1425 if (len < bytes_to_read) in ReadCStringFromMemory()
DProcess.cpp2406 addr_t bytes_to_read = std::min<addr_t>(bytes_left, cache_line_bytes_left); in ReadStringFromMemory() local
2407 size_t bytes_read = ReadMemory (curr_addr, curr_dst, bytes_to_read, error); in ReadStringFromMemory()
2455 addr_t bytes_to_read = std::min<addr_t>(bytes_left, cache_line_bytes_left); in ReadCStringFromMemory() local
2456 size_t bytes_read = ReadMemory (curr_addr, curr_dst, bytes_to_read, error); in ReadCStringFromMemory()
2468 if (len < bytes_to_read) in ReadCStringFromMemory()