Searched refs:buffer_remaining_length (Results 1 – 1 of 1) sorted by relevance
/lvgl-3.7.0/src/misc/ |
D | lv_fs.c | 144 …uint32_t buffer_remaining_length = LV_MIN((uint32_t)buffer_size - buffer_offset, (uint32_t)end - f… in lv_fs_read_cached() local 146 if(btr <= buffer_remaining_length) { in lv_fs_read_cached() 153 lv_memcpy(buf, buffer + buffer_offset, buffer_remaining_length); in lv_fs_read_cached() 158 … res = file_p->drv->read_cb(file_p->drv, file_p->file_d, (void *)(buf + buffer_remaining_length), in lv_fs_read_cached() 159 btr - buffer_remaining_length, &bytes_read_to_buffer); in lv_fs_read_cached() 167 … uint16_t data_chunk_remaining = LV_MIN(btr - buffer_remaining_length, bytes_read_to_buffer); in lv_fs_read_cached() 168 lv_memcpy(buf + buffer_remaining_length, buffer, data_chunk_remaining); in lv_fs_read_cached() 170 *br = LV_MIN(buffer_remaining_length + bytes_read_to_buffer, btr); in lv_fs_read_cached()
|