Home
last modified time | relevance | path

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

/external/libbrillo/brillo/streams/
Dstream.cc28 size_t size_to_read, in ReadAsync() argument
42 return ReadAsyncImpl(buffer, size_to_read, callback, error_callback, error, in ReadAsync()
47 size_t size_to_read, in ReadAllAsync() argument
60 size_to_read, success_callback, error_callback); in ReadAllAsync()
61 return ReadAsyncImpl(buffer, size_to_read, callback, error_callback, error, in ReadAllAsync()
66 size_t size_to_read, in ReadBlocking() argument
71 if (!ReadNonBlocking(buffer, size_to_read, size_read, &eos, error)) in ReadBlocking()
86 size_t size_to_read, in ReadAllBlocking() argument
88 while (size_to_read > 0) { in ReadAllBlocking()
90 if (!ReadBlocking(buffer, size_to_read, &size_read, error)) in ReadAllBlocking()
[all …]
Dstream.h205 size_t size_to_read,
217 size_t size_to_read,
236 size_t size_to_read,
256 size_t size_to_read,
264 size_t size_to_read,
414 size_t size_to_read,
433 size_t size_to_read,
474 size_t size_to_read,
Dmemory_containers.cc34 size_t size_to_read, in Read() argument
41 if (size_to_read >= remaining) { in Read()
42 size_to_read = remaining; in Read()
48 CopyMemoryBlock(buffer, src_buffer, size_to_read); in Read()
50 size_to_read = 0; in Read()
53 *size_read = size_to_read; in Read()
Dfake_stream.cc198 size_t size_to_read, in ReadNonBlocking() argument
227 size_to_read = std::min(size_to_read, input_buffer_.size() - input_ptr_); in ReadNonBlocking()
228 std::memcpy(buffer, input_buffer_.data() + input_ptr_, size_to_read); in ReadNonBlocking()
229 input_ptr_ += size_to_read; in ReadNonBlocking()
230 *size_read = size_to_read; in ReadNonBlocking()
Dstream_utils.cc69 size_t size_to_read = in PerformRead() local
71 if (size_to_read == 0) in PerformRead()
74 state->buffer.data(), size_to_read, base::Bind(PerformWrite, state), in PerformRead()
Dmemory_stream.cc141 size_t size_to_read, in ReadNonBlocking() argument
148 if (!container_->Read(buffer, size_to_read, stream_position_, &read, error)) in ReadNonBlocking()
153 *end_of_stream = (read == 0) && (size_to_read != 0); in ReadNonBlocking()
Dtls_stream.cc84 size_t size_to_read,
144 size_t size_to_read, in ReadNonBlocking() argument
149 int size_int = static_cast<int>(std::min(size_to_read, max_int)); in ReadNonBlocking()
490 size_t size_to_read, in ReadNonBlocking() argument
496 return impl_->ReadNonBlocking(buffer, size_to_read, size_read, end_of_stream, in ReadNonBlocking()
Dinput_stream_set.cc110 size_t size_to_read, in ReadNonBlocking() argument
120 if (!stream->ReadNonBlocking(buffer, size_to_read, size_read, &eos, error)) in ReadNonBlocking()
Dmemory_containers.h38 size_t size_to_read,
73 size_t size_to_read,
Dfile_stream.cc443 size_t size_to_read, in ReadNonBlocking() argument
450 ssize_t read = fd_interface_->Read(buffer, size_to_read); in ReadNonBlocking()
465 *end_of_stream = (read == 0 && size_to_read != 0); in ReadNonBlocking()
Dtls_stream.h53 size_t size_to_read,
Dinput_stream_set.h81 size_t size_to_read,
Dfile_stream.h116 size_t size_to_read,
Dfake_stream.h98 size_t size_to_read,
Dmemory_stream.h164 size_t size_to_read,
Dfake_stream_unittest.cc38 bool ReadString(size_t size_to_read, std::string* out_buffer, bool* eos) { in ReadString() argument
40 data.resize(size_to_read); in ReadString()
/external/pdfium/third_party/libtiff/
D0025-upstream-OOM-gtTileContig.patch319 + tmsize_t size_to_read)
326 + return TIFFReadEncodedStrip(tif, strip, *buf, size_to_read);
333 + if ((size_to_read!=(tmsize_t)(-1))&&(size_to_read<this_stripsize))
334 + this_stripsize=size_to_read;
389 + tmsize_t size_to_read)
397 + return TIFFReadEncodedTile(tif, tile, *buf, size_to_read);
420 + if (size_to_read == (tmsize_t)(-1))
421 + size_to_read = tilesize;
422 + else if (size_to_read > tilesize)
423 + size_to_read = tilesize;
[all …]
Dtif_read.c535 tmsize_t size_to_read) in _TIFFReadEncodedStripAndAllocBuffer() argument
542 return TIFFReadEncodedStrip(tif, strip, *buf, size_to_read); in _TIFFReadEncodedStripAndAllocBuffer()
549 if ((size_to_read!=(tmsize_t)(-1))&&(size_to_read<this_stripsize)) in _TIFFReadEncodedStripAndAllocBuffer()
550 this_stripsize=size_to_read; in _TIFFReadEncodedStripAndAllocBuffer()
1027 tmsize_t size_to_read) in _TIFFReadEncodedTileAndAllocBuffer() argument
1035 return TIFFReadEncodedTile(tif, tile, *buf, size_to_read); in _TIFFReadEncodedTileAndAllocBuffer()
1058 if (size_to_read == (tmsize_t)(-1)) in _TIFFReadEncodedTileAndAllocBuffer()
1059 size_to_read = tilesize; in _TIFFReadEncodedTileAndAllocBuffer()
1060 else if (size_to_read > tilesize) in _TIFFReadEncodedTileAndAllocBuffer()
1061 size_to_read = tilesize; in _TIFFReadEncodedTileAndAllocBuffer()
[all …]
Dtiffiop.h370 tmsize_t size_to_read);
374 tmsize_t size_to_read);
/external/v4l2_codec2/vda/
Dvp9_bool_decoder.cc154 int size_to_read = in ConsumePaddingBits() local
156 reader_->ReadBits(size_to_read, &data); in ConsumePaddingBits()
/external/google-breakpad/src/client/mac/handler/
Ddynamic_images.cc165 mach_vm_size_t size_to_read = in ReadTaskString() local
169 if (ReadTaskMemory(target_task, address, (size_t)size_to_read, bytes) != in ReadTaskString()
/external/zlib/src/contrib/minizip/
Dunzip.c1961 ZPOS64_T size_to_read; in unzGetLocalExtrafield() local
1971 size_to_read = (pfile_in_zip_read_info->size_local_extrafield - in unzGetLocalExtrafield()
1975 return (int)size_to_read; in unzGetLocalExtrafield()
1977 if (len>size_to_read) in unzGetLocalExtrafield()
1978 read_now = (uInt)size_to_read; in unzGetLocalExtrafield()