Home
last modified time | relevance | path

Searched refs:num_to_read (Results 1 – 2 of 2) sorted by relevance

/system/extras/boot_control_copy/
Dboot_control_copy.cpp96 size_t num_to_read = remaining > COPY_BUF_SIZE ? COPY_BUF_SIZE : remaining; in copy_data() local
99 num_read = read(src_fd, copy_buf, num_to_read); in copy_data()
102 fprintf(stderr, "Error reading %zd bytes from source: %s\n", num_to_read, strerror(errno)); in copy_data()
/system/core/libutils/
DUnicode.cpp113 size_t num_to_read = 0; in utf32_at_internal() local
115 for (num_to_read = 1, mask = 0x40, to_ignore_mask = 0xFFFFFF80; in utf32_at_internal()
117 num_to_read++, to_ignore_mask |= mask, mask >>= 1) { in utf32_at_internal()
122 utf32 &= ~(to_ignore_mask << (6 * (num_to_read - 1))); in utf32_at_internal()
124 *num_read = num_to_read; in utf32_at_internal()