Home
last modified time | relevance | path

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

12

/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.cc199 size_t size_to_read, in ReadNonBlocking() argument
228 size_to_read = std::min(size_to_read, input_buffer_.size() - input_ptr_); in ReadNonBlocking()
229 std::memcpy(buffer, input_buffer_.data() + input_ptr_, size_to_read); in ReadNonBlocking()
230 input_ptr_ += size_to_read; in ReadNonBlocking()
231 *size_read = size_to_read; in ReadNonBlocking()
Dstream_utils.cc73 size_t size_to_read = in PerformRead() local
75 if (size_to_read == 0) in PerformRead()
78 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.cc90 size_t size_to_read,
150 size_t size_to_read, in ReadNonBlocking() argument
155 int size_int = static_cast<int>(std::min(size_to_read, max_int)); in ReadNonBlocking()
496 size_t size_to_read, in ReadNonBlocking() argument
502 return impl_->ReadNonBlocking(buffer, size_to_read, size_read, end_of_stream, in ReadNonBlocking()
Dinput_stream_set.cc112 size_t size_to_read, in ReadNonBlocking() argument
122 if (!stream->ReadNonBlocking(buffer, size_to_read, size_read, &eos, error)) in ReadNonBlocking()
Dmemory_containers.h39 size_t size_to_read,
74 size_t size_to_read,
Dtls_stream.h53 size_t size_to_read,
Dfile_stream.cc433 size_t size_to_read, in ReadNonBlocking() argument
440 ssize_t read = fd_interface_->Read(buffer, size_to_read); in ReadNonBlocking()
455 *end_of_stream = (read == 0 && size_to_read != 0); in ReadNonBlocking()
Dinput_stream_set.h81 size_t size_to_read,
Dfile_stream.h118 size_t size_to_read,
Dfake_stream.h98 size_t size_to_read,
Dmemory_stream.h166 size_t size_to_read,
Dfake_stream_test.cc39 bool ReadString(size_t size_to_read, std::string* out_buffer, bool* eos) { in ReadString() argument
41 data.resize(size_to_read); in ReadString()
/external/cpu_features/src/
Dstack_line_reader.c43 const size_t size_to_read = STACK_LINE_READER_BUFFER_SIZE - reader->view.size; in LoadMore() local
44 const int read = CpuFeatures_ReadFile(reader->fd, ptr, size_to_read); in LoadMore()
46 assert(read <= (int)size_to_read); in LoadMore()
/external/pdfium/third_party/libtiff/
Dtif_read.c574 tmsize_t size_to_read) in _TIFFReadEncodedStripAndAllocBuffer() argument
576 assert(size_to_read > 0); in _TIFFReadEncodedStripAndAllocBuffer()
583 return TIFFReadEncodedStrip(tif, strip, *buf, size_to_read); in _TIFFReadEncodedStripAndAllocBuffer()
590 if ((size_to_read!=(tmsize_t)(-1))&&(size_to_read<this_stripsize)) in _TIFFReadEncodedStripAndAllocBuffer()
591 this_stripsize=size_to_read; in _TIFFReadEncodedStripAndAllocBuffer()
1052 tmsize_t size_to_read) in _TIFFReadEncodedTileAndAllocBuffer() argument
1060 return TIFFReadEncodedTile(tif, tile, *buf, size_to_read); in _TIFFReadEncodedTileAndAllocBuffer()
1083 if (size_to_read == (tmsize_t)(-1)) in _TIFFReadEncodedTileAndAllocBuffer()
1084 size_to_read = tilesize; in _TIFFReadEncodedTileAndAllocBuffer()
1085 else if (size_to_read > tilesize) in _TIFFReadEncodedTileAndAllocBuffer()
[all …]
D0031-safe_size_ingtStripContig.patch21 tmsize_t size_to_read)
23 + assert(size_to_read > 0);
Dtiffiop.h399 tmsize_t size_to_read);
403 tmsize_t size_to_read);
/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/llvm-project/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/
DDynamicLoaderDarwinKernel.cpp662 size_t size_to_read = 512; in ReadMemoryModule() local
665 size_to_read = sizeof(llvm::MachO::mach_header) + mh.sizeofcmds; in ReadMemoryModule()
668 size_to_read = sizeof(llvm::MachO::mach_header_64) + mh.sizeofcmds; in ReadMemoryModule()
672 process->ReadModuleFromMemory(file_spec, m_load_address, size_to_read); in ReadMemoryModule()
/external/zlib/contrib/minizip/
Dunzip.c1953 ZPOS64_T size_to_read; in unzGetLocalExtrafield() local
1963 size_to_read = (pfile_in_zip_read_info->size_local_extrafield - in unzGetLocalExtrafield()
1967 return (int)size_to_read; in unzGetLocalExtrafield()
1969 if (len>size_to_read) in unzGetLocalExtrafield()
1970 read_now = (uInt)size_to_read; in unzGetLocalExtrafield()
/external/rust/crates/libz-sys/src/zlib/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()
/external/llvm-project/lldb/include/lldb/Core/
DModule.h610 size_t size_to_read = 512);

12