Home
last modified time | relevance | path

Searched refs:bytes_read (Results 1 – 25 of 244) sorted by relevance

12345678910

/third_party/flutter/skia/third_party/externals/sfntly/cpp/src/sfntly/data/
Dbyte_array.cc113 int32_t bytes_read = 0; in CopyTo() local
117 while ((bytes_read = in CopyTo()
119 int bytes_written = array->Put(index + dst_offset, &(b[0]), 0, bytes_read); in CopyTo()
121 index += bytes_read; in CopyTo()
122 remaining_length -= bytes_read; in CopyTo()
134 int32_t bytes_read = 0; in CopyTo() local
137 while ((bytes_read = Get(index + offset, &(b[0]), 0, buffer_length)) > 0) { in CopyTo()
138 os->Write(&b, 0, bytes_read); in CopyTo()
139 index += bytes_read; in CopyTo()
147 int32_t bytes_read = 0; in CopyFrom() local
[all …]
/third_party/skia/third_party/externals/sfntly/cpp/src/sfntly/data/
Dbyte_array.cc113 int32_t bytes_read = 0; in CopyTo() local
117 while ((bytes_read = in CopyTo()
119 int bytes_written = array->Put(index + dst_offset, &(b[0]), 0, bytes_read); in CopyTo()
121 index += bytes_read; in CopyTo()
122 remaining_length -= bytes_read; in CopyTo()
134 int32_t bytes_read = 0; in CopyTo() local
137 while ((bytes_read = Get(index + offset, &(b[0]), 0, buffer_length)) > 0) { in CopyTo()
138 os->Write(&b, 0, bytes_read); in CopyTo()
139 index += bytes_read; in CopyTo()
147 int32_t bytes_read = 0; in CopyFrom() local
[all …]
/third_party/cef/libcef_dll/cpptoc/
Dresource_handler_cpptoc.cc173 int* bytes_read, in resource_handler_read() argument
187 DCHECK(bytes_read); in resource_handler_read()
188 if (!bytes_read) in resource_handler_read()
196 int bytes_readVal = bytes_read ? *bytes_read : 0; in resource_handler_read()
204 if (bytes_read) in resource_handler_read()
205 *bytes_read = bytes_readVal; in resource_handler_read()
215 int* bytes_read, in resource_handler_read_response() argument
229 DCHECK(bytes_read); in resource_handler_read_response()
230 if (!bytes_read) in resource_handler_read_response()
238 int bytes_readVal = bytes_read ? *bytes_read : 0; in resource_handler_read_response()
[all …]
/third_party/libsoup/tests/
Dbrotli-decompressor-test.c42 gsize bytes_read, bytes_written; in test_brotli() local
44 &bytes_read, &bytes_written, &error); in test_brotli()
50 in_buf += bytes_read; in test_brotli()
51 length -= bytes_read; in test_brotli()
84 gsize bytes_read, bytes_written; in test_brotli_corrupt() local
86 &bytes_read, &bytes_written, &error); in test_brotli_corrupt()
88 in_buf += bytes_read; in test_brotli_corrupt()
89 length -= bytes_read; in test_brotli_corrupt()
119 gsize bytes_read, bytes_written; in test_brotli_reset() local
121 &bytes_read, &bytes_written, &error); in test_brotli_reset()
[all …]
/third_party/ltp/testcases/kernel/fs/fs_di/
Dfrag.c48 int bytes_read = 0, bytes_written = 0, fd1 = -1, fd2 = -1; in main() local
78 bytes_read = fread(buff, 1, 1024, fp_data); in main()
79 if (bytes_read < 0) { in main()
84 bytes_written = fwrite(buff, 1, bytes_read, fp_frag1); in main()
85 if (bytes_read != bytes_written) { in main()
90 bytes_written = fwrite(buff, 1, bytes_read, fp_frag2); in main()
91 if (bytes_read != bytes_written) { in main()
104 if (bytes_read < 1024) in main()
/third_party/boost/libs/asio/test/
Dbuffered_read_stream.cpp174 std::size_t bytes_read = 0; in test_sync_operations() local
175 while (bytes_read < sizeof(read_data)) in test_sync_operations()
177 bytes_read += server_socket.read_some( in test_sync_operations()
178 boost::asio::buffer(read_buf + bytes_read)); in test_sync_operations()
182 BOOST_ASIO_CHECK(bytes_read == sizeof(read_data)); in test_sync_operations()
192 bytes_read = 0; in test_sync_operations()
193 while (bytes_read < sizeof(read_data)) in test_sync_operations()
195 bytes_read += client_socket.read_some( in test_sync_operations()
196 boost::asio::buffer(read_buf + bytes_read)); in test_sync_operations()
200 BOOST_ASIO_CHECK(bytes_read == sizeof(read_data)); in test_sync_operations()
[all …]
Dbuffered_write_stream.cpp175 std::size_t bytes_read = 0; in test_sync_operations() local
176 while (bytes_read < sizeof(read_data)) in test_sync_operations()
178 bytes_read += server_socket.read_some( in test_sync_operations()
179 boost::asio::buffer(read_buf + bytes_read)); in test_sync_operations()
183 BOOST_ASIO_CHECK(bytes_read == sizeof(read_data)); in test_sync_operations()
194 bytes_read = 0; in test_sync_operations()
195 while (bytes_read < sizeof(read_data)) in test_sync_operations()
197 bytes_read += client_socket.read_some( in test_sync_operations()
198 boost::asio::buffer(read_buf + bytes_read)); in test_sync_operations()
202 BOOST_ASIO_CHECK(bytes_read == sizeof(read_data)); in test_sync_operations()
[all …]
Dbuffered_stream.cpp186 std::size_t bytes_read = 0; in test_sync_operations() local
187 while (bytes_read < sizeof(read_data)) in test_sync_operations()
189 bytes_read += server_socket.read_some( in test_sync_operations()
190 boost::asio::buffer(read_buf + bytes_read)); in test_sync_operations()
194 BOOST_ASIO_CHECK(bytes_read == sizeof(read_data)); in test_sync_operations()
205 bytes_read = 0; in test_sync_operations()
206 while (bytes_read < sizeof(read_data)) in test_sync_operations()
208 bytes_read += client_socket.read_some( in test_sync_operations()
209 boost::asio::buffer(read_buf + bytes_read)); in test_sync_operations()
213 BOOST_ASIO_CHECK(bytes_read == sizeof(read_data)); in test_sync_operations()
[all …]
/third_party/glib/glib/tests/
Dconvert.c40 gsize bytes_read = 0; in test_iconv_state() local
45 &bytes_read, &bytes_written, &error); in test_iconv_state()
51 g_assert_cmpint (bytes_read, ==, 5); in test_iconv_state()
65 gsize bytes_read = 0; in test_one_half() local
71 &bytes_read, &bytes_written, in test_one_half()
75 g_assert_cmpint (bytes_read, ==, 2); in test_one_half()
82 &bytes_read, &bytes_written, in test_one_half()
86 g_assert_cmpint (bytes_read, ==, 0); in test_one_half()
95 &bytes_read, &bytes_written, in test_one_half()
99 g_assert_cmpint (bytes_read, ==, 2); in test_one_half()
[all …]
/third_party/e2fsprogs/resize/
Dresource_track.c43 track->bytes_read = 0; in init_resource_track()
48 track->bytes_read = io_start->bytes_read; in init_resource_track()
105 unsigned long long bytes_read = 0; in print_resource_track() local
110 bytes_read = delta->bytes_read - track->bytes_read; in print_resource_track()
113 if (bytes_read == 0 && bytes_written == 0) in print_resource_track()
119 mbytes(bytes_read), in print_resource_track()
121 (double)mbytes(bytes_read + bytes_written) / in print_resource_track()
/third_party/glib/gio/tests/
Dmemory-input-stream.c35 gsize bytes_read, pos, len, chunk_size; in test_read_chunks() local
53 bytes_read = g_input_stream_read (stream, buffer, chunk_size, NULL, &error); in test_read_chunks()
55 g_assert_cmpint (bytes_read, ==, MIN (chunk_size, len - pos)); in test_read_chunks()
56 g_assert (strncmp (buffer, result + pos, bytes_read) == 0); in test_read_chunks()
58 pos += bytes_read; in test_read_chunks()
77 gsize *bytes_read = user_data; in async_read_chunk() local
80 *bytes_read = g_input_stream_read_finish (G_INPUT_STREAM (object), in async_read_chunk()
109 gsize bytes_read, bytes_skipped; in test_async() local
132 async_read_chunk, &bytes_read); in test_async()
135 g_assert_cmpint (bytes_read, ==, MIN (chunk_size, len - pos)); in test_async()
[all …]
/third_party/glib/glib/
Dgconvert.c393 gsize *bytes_read, in g_convert_with_iconv() argument
485 if (bytes_read) in g_convert_with_iconv()
486 *bytes_read = p - str; in g_convert_with_iconv()
560 gsize *bytes_read, in g_convert() argument
575 if (bytes_read) in g_convert()
576 *bytes_read = 0; in g_convert()
585 bytes_read, bytes_written, in g_convert()
647 gsize *bytes_read, in g_convert_with_fallback() argument
679 bytes_read, bytes_written, &local_error); in g_convert_with_fallback()
699 if (bytes_read) in g_convert_with_fallback()
[all …]
Dgconvert.h103 gsize *bytes_read,
110 gsize *bytes_read,
119 gsize *bytes_read,
129 gsize *bytes_read,
135 gsize *bytes_read,
145 gsize *bytes_read,
151 gsize *bytes_read,
/third_party/cef/libcef_dll/wrapper/
Dcef_stream_resource_handler.cc66 int& bytes_read, in Read() argument
74 bytes_read = 0; in Read()
78 stream_->Read(static_cast<char*>(data_out) + bytes_read, 1, in Read()
79 bytes_to_read - bytes_read)); in Read()
80 bytes_read += read; in Read()
81 } while (read != 0 && bytes_read < bytes_to_read); in Read()
83 return (bytes_read > 0); in Read()
/third_party/grpc/src/cpp/ext/filters/census/
Drpc_encoding.h89 size_t bytes_read = in Decode() local
91 if (bytes_read == 0) { in Decode()
94 pos += bytes_read; in Decode()
132 size_t bytes_read = kFieldIdSize; in ParseField() local
135 bytes_read += kTraceIdSize; in ParseField()
136 if (bytes_read > buf.size()) { in ParseField()
143 bytes_read += kSpanIdSize; in ParseField()
144 if (bytes_read > buf.size()) { in ParseField()
151 bytes_read += kTraceOptionsSize; in ParseField()
152 if (bytes_read > buf.size()) { in ParseField()
[all …]
/third_party/e2fsprogs/e2fsck/
Discan.c44 unsigned long long bytes_read; member
81 track->bytes_read = 0; in init_resource_track()
86 track->bytes_read = io_start->bytes_read; in init_resource_track()
140 unsigned long long bytes_read = 0; in print_resource_track() local
148 bytes_read = delta->bytes_read - track->bytes_read; in print_resource_track()
154 mbytes(bytes_read), mbytes(bytes_written), in print_resource_track()
155 (double)mbytes(bytes_read + bytes_written) / in print_resource_track()
/third_party/gn/src/base/files/
Dfile_posix.cc153 int bytes_read = 0; in Read() local
156 rv = HANDLE_EINTR(pread(file_.get(), data + bytes_read, size - bytes_read, in Read()
157 offset + bytes_read)); in Read()
161 bytes_read += rv; in Read()
162 } while (bytes_read < size); in Read()
164 return bytes_read ? bytes_read : rv; in Read()
172 int bytes_read = 0; in ReadAtCurrentPos() local
175 rv = HANDLE_EINTR(read(file_.get(), data + bytes_read, size - bytes_read)); in ReadAtCurrentPos()
179 bytes_read += rv; in ReadAtCurrentPos()
180 } while (bytes_read < size); in ReadAtCurrentPos()
[all …]
/third_party/flutter/engine/flutter/shell/platform/fuchsia/runtime/dart/utils/
Dfiles.cc27 ssize_t bytes_read = 0; in ReadFileDescriptor() local
29 offset += bytes_read; in ReadFileDescriptor()
31 bytes_read = read(fd, &(*result)[offset], kBufferSize); in ReadFileDescriptor()
32 } while (bytes_read > 0); in ReadFileDescriptor()
34 if (bytes_read < 0) { in ReadFileDescriptor()
39 result->resize(offset + bytes_read); in ReadFileDescriptor()
/third_party/libsoup/libsoup/
Dsoup-converter-wrapper.c181 gsize *bytes_read, in soup_converter_wrapper_fallback_convert() argument
194 *bytes_read = inbuf_size; in soup_converter_wrapper_fallback_convert()
198 *bytes_read = *bytes_written = inbuf_size; in soup_converter_wrapper_fallback_convert()
201 *bytes_read = *bytes_written = outbuf_size; in soup_converter_wrapper_fallback_convert()
204 if (*bytes_read < inbuf_size) in soup_converter_wrapper_fallback_convert()
231 gsize *bytes_read, in soup_converter_wrapper_real_convert() argument
243 flags, bytes_read, bytes_written, in soup_converter_wrapper_real_convert()
308 flags, bytes_read, in soup_converter_wrapper_real_convert()
319 gsize *bytes_read, in soup_converter_wrapper_convert() argument
329 flags, bytes_read, in soup_converter_wrapper_convert()
[all …]
/third_party/boost/libs/filesystem/src/
Dunique_path.cpp117 std::size_t bytes_read = 0; in system_crypt_random() local
118 while (bytes_read < len) in system_crypt_random()
121 ssize_t n = ::getrandom(buf, len - bytes_read, 0u); in system_crypt_random()
123 ssize_t n = ::syscall(SYS_getrandom, buf, len - bytes_read, 0u); in system_crypt_random()
134 bytes_read += n; in system_crypt_random()
155 std::size_t bytes_read = 0; in system_crypt_random()
156 while (bytes_read < len) in system_crypt_random()
158 ssize_t n = read(file, buf, len - bytes_read); in system_crypt_random()
168 bytes_read += n; in system_crypt_random()
/third_party/cef/libcef/browser/net_service/
Dstream_reader_url_loader.cc202 int bytes_read);
205 void ContinueReadCallbackOnWorkThread(int callback_id, int bytes_read);
208 void RunReadCallback(int bytes_read);
214 int bytes_read,
308 int bytes_read = 0; in ReadOnWorkThread() local
310 buffer_.get(), dest_size, &bytes_read, in ReadOnWorkThread()
316 if (result && bytes_read == 0) in ReadOnWorkThread()
319 RunReadCallback(result || bytes_read <= 0 ? bytes_read : net::ERR_FAILED); in ReadOnWorkThread()
373 int bytes_read) { in ContinueReadCallback() argument
378 stream, callback_id, bytes_read)); in ContinueReadCallback()
[all …]
/third_party/grpc/test/core/tsi/alts/frame_protector/
Dframe_handler_test.cc86 size_t bytes_read = GPR_MIN(read_length, handler->buffer_size - offset); in deframe() local
88 &bytes_read)); in deframe()
89 offset += bytes_read; in deframe()
167 size_t bytes_read = handler->buffer_size; in frame_handler_test_bad_frame_length() local
169 !alts_read_frame_bytes(handler->reader, handler->buffer, &bytes_read)); in frame_handler_test_bad_frame_length()
171 GPR_ASSERT(bytes_read == 0); in frame_handler_test_bad_frame_length()
186 size_t bytes_read = handler->buffer_size; in frame_handler_test_unsupported_message_type() local
188 !alts_read_frame_bytes(handler->reader, handler->buffer, &bytes_read)); in frame_handler_test_unsupported_message_type()
190 GPR_ASSERT(bytes_read == 0); in frame_handler_test_unsupported_message_type()
225 size_t bytes_read = handler->buffer_size; in frame_handler_test_null_reader_bytes() local
[all …]
/third_party/ntfs-3g/ntfsprogs/
Dntfscat.c340 s64 bytes_read, written; in cat() local
367 bytes_read = ntfs_attr_mst_pread(attr, offset, 1, block_size, buffer); in cat()
368 if (bytes_read > 0) in cat()
369 bytes_read *= block_size; in cat()
371 bytes_read = ntfs_attr_pread(attr, offset, bufsize, buffer); in cat()
374 if (bytes_read == -1) { in cat()
378 if (!bytes_read) in cat()
381 written = fwrite(buffer, 1, bytes_read, stdout); in cat()
382 if (written != bytes_read) { in cat()
386 offset += bytes_read; in cat()
/third_party/cef/include/
Dcef_resource_handler.h79 virtual void Continue(int bytes_read) = 0;
175 int& bytes_read, in Read() argument
177 bytes_read = -1; in Read()
193 int& bytes_read, in ReadResponse() argument
195 bytes_read = -2; in ReadResponse()
/third_party/cef/libcef/browser/net/
Dinternal_scheme_handler.cc78 int& bytes_read, in Read() argument
121 int& bytes_read, in Read() argument
125 bytes_read = 0; in Read()
129 reader_->Read(static_cast<char*>(data_out) + bytes_read, 1, in Read()
130 bytes_to_read - bytes_read)); in Read()
131 bytes_read += read; in Read()
132 } while (read != 0 && bytes_read < bytes_to_read); in Read()
134 return (bytes_read > 0); in Read()

12345678910