/third_party/node/test/overlapped-checker/ |
D | main_unix.c | 9 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()
|
D | main_win.c | 8 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/ |
D | scanf-bytes-consumed.c | 10 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/skia/third_party/externals/sfntly/cpp/src/sfntly/port/ |
D | memory_input_stream.cc | 95 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()
|
D | file_input_stream.cc | 101 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/flutter/skia/third_party/externals/sfntly/cpp/src/sfntly/port/ |
D | memory_input_stream.cc | 95 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()
|
D | file_input_stream.cc | 101 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/libuv/test/ |
D | test-osx-select.c | 30 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/ |
D | test_winconsoleio.py | 159 for read_count in range(1, 16): 165 b = stdin.read(read_count) 168 self.assertEqual(actual, expected, 'stdin.read({})'.format(read_count)) 178 for read_count in range(1, 16): 184 b = stdin.read(read_count) 187 self.assertEqual(actual, expected, 'stdin.read({})'.format(read_count))
|
/third_party/freetype/builds/unix/ |
D | ftsystem.c | 322 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/flutter/skia/third_party/externals/freetype/builds/unix/ |
D | ftsystem.c | 322 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/ |
D | ftsystem.c | 338 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/skia/third_party/externals/freetype/builds/windows/ |
D | ftsystem.c | 338 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/skia/third_party/externals/libpng/contrib/libtests/ |
D | pngimage.c | 377 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/ |
D | pngimage.c | 377 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/libpng/contrib/libtests/ |
D | pngimage.c | 377 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/libsnd/src/ |
D | sds.c | 54 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()
|
D | paf.c | 63 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/f2fs-tools/fsck/ |
D | segment.c | 157 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/jerryscript/tests/unit-core/ |
D | test-typedarray.c | 271 … 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/ |
D | sndfile-play.c | 739 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/pulseaudio/src/pulsecore/ |
D | srbchannel.c | 168 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()
|
/third_party/cef/libcef/browser/extensions/value_store/ |
D | cef_value_store.h | 31 int read_count() const { return read_count_; } in read_count() function
|
/third_party/libpng/contrib/tools/ |
D | pngfix.c | 882 png_uint_32 read_count; /* Count of bytes read (in the chunk) */ member 1048 file->read_count = 0; in file_init() 1250 ++(file->read_count); in read_byte() 1645 chunk->file->read_count = 8; in setpos() 2982 file->read_count = 8; in sync_stream() 3038 file->read_count -= 8; in sync_stream() 3140 file->read_count -= 8; in read_chunk() 3203 if (file->read_count < 8) in read_callback() 3205 assert(file->read_count == 0); in read_callback() 3210 if (file->read_count == 4) in read_callback() [all …]
|
/third_party/flutter/skia/third_party/externals/libpng/contrib/tools/ |
D | pngfix.c | 882 png_uint_32 read_count; /* Count of bytes read (in the chunk) */ member 1048 file->read_count = 0; in file_init() 1250 ++(file->read_count); in read_byte() 1645 chunk->file->read_count = 8; in setpos() 2982 file->read_count = 8; in sync_stream() 3038 file->read_count -= 8; in sync_stream() 3140 file->read_count -= 8; in read_chunk() 3203 if (file->read_count < 8) in read_callback() 3205 assert(file->read_count == 0); in read_callback() 3210 if (file->read_count == 4) in read_callback() [all …]
|