Home
last modified time | relevance | path

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

/system/core/libutils/
DUnicode.cpp145 size_t num_to_read = 0; in utf32_at_internal() local
147 for (num_to_read = 1, mask = 0x40, to_ignore_mask = 0xFFFFFF80; in utf32_at_internal()
149 num_to_read++, to_ignore_mask |= mask, mask >>= 1) { in utf32_at_internal()
154 utf32 &= ~(to_ignore_mask << (6 * (num_to_read - 1))); in utf32_at_internal()
156 *num_read = num_to_read; in utf32_at_internal()
379 size_t num_to_read = 0; in utf8_length() local
381 for (num_to_read = 1, mask = 0x40, to_ignore_mask = 0x80; in utf8_length()
382 num_to_read < 5 && (first_char & mask); in utf8_length()
383 num_to_read++, to_ignore_mask |= mask, mask >>= 1) { in utf8_length()
391 if (num_to_read == 5) { in utf8_length()
[all …]
/system/extras/boot_control_copy/
Dboot_control_copy.cpp105 size_t num_to_read = remaining > COPY_BUF_SIZE ? COPY_BUF_SIZE : remaining; in copy_data() local
108 num_read = read(src_fd, copy_buf, num_to_read); in copy_data()
112 num_to_read, strerror(errno)); in copy_data()