Home
last modified time | relevance | path

Searched refs:read_count (Results 1 – 25 of 40) sorted by relevance

12

/third_party/node/test/overlapped-checker/
Dmain_unix.c9 ssize_t read_count; in r() local
11 read_count = read(0, buf, buf_size); in r()
12 while (read_count < 0 && errno == EINTR); in r()
13 if (read_count <= 0) in r()
15 return (size_t)read_count; in r()
40 size_t read_count = r(buf, sizeof(buf)); in main() local
44 if (!strncmp(buf, "exit", read_count)) { in main()
47 w(buf, read_count); in main()
Dmain_win.c8 static DWORD read_count; variable
55 if (!GetOverlappedResult(stdin_h, &stdin_o, &read_count, FALSE)) { in main()
58 if (strncmp(buf, "exit", read_count) == 0) { in main()
61 write(buf, read_count); in main()
/third_party/musl/libc-test/src/regression/
Dscanf-bytes-consumed.c10 int read_count; in main() local
13 n = sscanf(buf, "%s%n", dest, &read_count); in main()
16 if(read_count != 2) in main()
17 t_error("sscanf consumed 2 bytes but reported %d\n", read_count); in main()
/third_party/flutter/skia/third_party/externals/sfntly/cpp/src/sfntly/port/
Dmemory_input_stream.cc95 size_t read_count = std::min<size_t>(length_ - position_, length); in Read() local
96 if (b->size() < (size_t)(offset + read_count)) { in Read()
97 b->resize((size_t)(offset + read_count)); in Read()
99 memcpy(&((*b)[offset]), buffer_ + position_, read_count); in Read()
100 position_ += read_count; in Read()
101 return read_count; in Read()
Dfile_input_stream.cc101 size_t read_count = std::min<size_t>(length_ - position_, length); in Read() local
102 if (b->size() < (size_t)(offset + read_count)) { in Read()
103 b->resize((size_t)(offset + read_count)); in Read()
105 int32_t actual_read = fread(&((*b)[offset]), 1, read_count, file_); in Read()
/third_party/skia/third_party/externals/sfntly/cpp/src/sfntly/port/
Dmemory_input_stream.cc95 size_t read_count = std::min<size_t>(length_ - position_, length); in Read() local
96 if (b->size() < (size_t)(offset + read_count)) { in Read()
97 b->resize((size_t)(offset + read_count)); in Read()
99 memcpy(&((*b)[offset]), buffer_ + position_, read_count); in Read()
100 position_ += read_count; in Read()
101 return read_count; in Read()
Dfile_input_stream.cc101 size_t read_count = std::min<size_t>(length_ - position_, length); in Read() local
102 if (b->size() < (size_t)(offset + read_count)) { in Read()
103 b->resize((size_t)(offset + read_count)); in Read()
105 int32_t actual_read = fread(&((*b)[offset]), 1, read_count, file_); in Read()
/third_party/ltp/testcases/kernel/syscalls/truncate/
Dtruncate02.c37 off_t read_count; member
48 char read_buf[tc->read_count]; in verify_truncate()
51 memset(read_buf, 'b', tc->read_count); in verify_truncate()
80 SAFE_PREAD(1, fd, read_buf, tc->read_count, tc->read_off); in verify_truncate()
81 for (i = 0; i < tc->read_count; i++) { in verify_truncate()
/third_party/libuv/test/
Dtest-osx-select.c30 static int read_count; variable
41 fprintf(stdout, "got data %d\n", ++read_count); in read_cb()
44 if (read_count == 3) in read_cb()
80 ASSERT(read_count == 3); in TEST_IMPL()
134 ASSERT(read_count == 3); in TEST_IMPL()
/third_party/python/Lib/test/
Dtest_winconsoleio.py162 for read_count in range(1, 16):
168 b = stdin.read(read_count)
171 self.assertEqual(actual, expected, 'stdin.read({})'.format(read_count))
181 for read_count in range(1, 16):
187 b = stdin.read(read_count)
190 self.assertEqual(actual, expected, 'stdin.read({})'.format(read_count))
/third_party/flutter/skia/third_party/externals/freetype/builds/unix/
Dftsystem.c322 ssize_t read_count; in FT_Stream_Open() local
325 read_count = read( file, in FT_Stream_Open()
329 if ( read_count <= 0 ) in FT_Stream_Open()
331 if ( read_count == -1 && errno == EINTR ) in FT_Stream_Open()
339 total_read_count += read_count; in FT_Stream_Open()
/third_party/freetype/builds/unix/
Dftsystem.c322 ssize_t read_count; in FT_Stream_Open() local
325 read_count = read( file, in FT_Stream_Open()
329 if ( read_count <= 0 ) in FT_Stream_Open()
331 if ( read_count == -1 && errno == EINTR ) in FT_Stream_Open()
339 total_read_count += read_count; in FT_Stream_Open()
/third_party/skia/third_party/externals/freetype/builds/unix/
Dftsystem.c338 ssize_t read_count; in FT_Stream_Open() local
341 read_count = read( file, in FT_Stream_Open()
345 if ( read_count <= 0 ) in FT_Stream_Open()
347 if ( read_count == -1 && errno == EINTR ) in FT_Stream_Open()
355 total_read_count += read_count; in FT_Stream_Open()
/third_party/gstreamer/gstplugins_base/tests/check/libs/
Drtpdummyhdrextimpl.c54 guint read_count; member
198 dummy->read_count++; in gst_rtp_dummy_hdr_ext_read()
200 if (dummy->read_count % 5 == 1) { in gst_rtp_dummy_hdr_ext_read()
/third_party/libpng/contrib/libtests/
Dpngimage.c377 size_t read_count; /* count of bytes read from current */ member
423 buffer->read_count = 0; in buffer_start_read()
813 size_t read_count = bp->read_count; in buffer_read() local
820 (last == bp->last && read_count >= bp->end_count)) in buffer_read()
828 else if (read_count >= sizeof last->buffer) in buffer_read()
832 read_count = 0; in buffer_read()
844 avail = (sizeof last->buffer) - read_count; in buffer_read()
848 memcpy(data, last->buffer + read_count, avail); in buffer_read()
849 read_count += avail; in buffer_read()
854 bp->read_count = read_count; in buffer_read()
/third_party/flutter/skia/third_party/externals/libpng/contrib/libtests/
Dpngimage.c377 size_t read_count; /* count of bytes read from current */ member
423 buffer->read_count = 0; in buffer_start_read()
813 size_t read_count = bp->read_count; in buffer_read() local
820 (last == bp->last && read_count >= bp->end_count)) in buffer_read()
828 else if (read_count >= sizeof last->buffer) in buffer_read()
832 read_count = 0; in buffer_read()
844 avail = (sizeof last->buffer) - read_count; in buffer_read()
848 memcpy(data, last->buffer + read_count, avail); in buffer_read()
849 read_count += avail; in buffer_read()
854 bp->read_count = read_count; in buffer_read()
/third_party/skia/third_party/externals/libpng/contrib/libtests/
Dpngimage.c377 size_t read_count; /* count of bytes read from current */ member
423 buffer->read_count = 0; in buffer_start_read()
813 size_t read_count = bp->read_count; in buffer_read() local
820 (last == bp->last && read_count >= bp->end_count)) in buffer_read()
828 else if (read_count >= sizeof last->buffer) in buffer_read()
832 read_count = 0; in buffer_read()
844 avail = (sizeof last->buffer) - read_count; in buffer_read()
848 memcpy(data, last->buffer + read_count, avail); in buffer_read()
849 read_count += avail; in buffer_read()
854 bp->read_count = read_count; in buffer_read()
/third_party/skia/third_party/externals/freetype/builds/windows/
Dftsystem.c338 DWORD read_count; in FT_Stream_Open() local
344 &read_count, NULL ) == FALSE ) in FT_Stream_Open()
351 total_read_count += read_count; in FT_Stream_Open()
/third_party/mindspore/mindspore/profiler/parser/
Dflops_parser.py93 read_count, all_log_struct = self._load_aicore_data(source_file)
95 for idx in range(read_count):
171 read_count = file_size // self.AICORE_LOG_SIZE
173 if not read_count:
182 all_log_struct = aicore_file.read(self.AICORE_LOG_SIZE * read_count)
187 return read_count, all_log_struct
/third_party/libsnd/src/
Dsds.c54 int read_block, read_count ; member
427 psds->read_count = 0 ; in sds_2byte_read()
471 psds->read_count = 0 ; in sds_3byte_read()
515 psds->read_count = 0 ; in sds_4byte_read()
667 if (psds->read_count >= psds->samplesperblock) in sds_read()
670 count = (psds->samplesperblock - psds->read_count) ; in sds_read()
673 memcpy (&(ptr [total]), &(psds->read_samples [psds->read_count]), count * sizeof (int)) ; in sds_read()
675 psds->read_count += count ; in sds_read()
727 psds->read_count = newsample ; in sds_seek()
Dpaf.c63 int read_block, write_block, read_count, write_count ; member
437 ppaf24->read_count = newsample ; in paf24_seek()
488 ppaf24->read_count = 0 ; in paf24_read_block()
523 if (ppaf24->read_count >= PAF24_SAMPLES_PER_BLOCK) in paf24_read()
526 count = (PAF24_SAMPLES_PER_BLOCK - ppaf24->read_count) * ppaf24->channels ; in paf24_read()
529 …memcpy (&(ptr [total]), &(ppaf24->samples [ppaf24->read_count * ppaf24->channels]), count * sizeof… in paf24_read()
531 ppaf24->read_count += count / ppaf24->channels ; in paf24_read()
/third_party/jerryscript/tests/unit-core/
Dtest-typedarray.c271 … jerry_value_t read_count = jerry_arraybuffer_read (buffer, 0, test_buffer, offset + byte_length); in test_typedarray_complex_creation() local
272 TEST_ASSERT (read_count == offset + byte_length); in test_typedarray_complex_creation()
573 jerry_length_t read_count = jerry_arraybuffer_read (buffer, offset, result_data, byte_length); in main() local
574 TEST_ASSERT (read_count == byte_length); in main()
576 for (uint8_t i = 0; i < read_count; i++) in main()
/third_party/libsnd/programs/
Dsndfile-play.c739 long k, start_count, output_count, write_count, read_count ; in solaris_play() local
780 { read_count = sf_read_short (sndfile, buffer, BUFFER_LEN) ; in solaris_play()
781 if (read_count < BUFFER_LEN) in solaris_play()
782 { memset (&(buffer [read_count]), 0, (BUFFER_LEN - read_count) * sizeof (short)) ; in solaris_play()
/third_party/f2fs-tools/fsck/
Dsegment.c157 u64 read_count; in f2fs_read() local
183 read_count = remained_blkentries = 0; in f2fs_read()
219 read_count += len_in_blk; in f2fs_read()
228 return read_count; in f2fs_read()
/third_party/pulseaudio/src/pulsecore/
Dsrbchannel.c168 pa_atomic_t read_count; member
253 sr->rb_read.count = &srh->read_count; in pa_srbchannel_new()
302 sr->rb_read.count = &srh->read_count; in pa_srbchannel_new_from_template()

12