Searched refs:to_read (Results 1 – 2 of 2) sorted by relevance
28 static void ttf_cb_stream_read(ttf_cb_stream_t * stream, void * data, size_t to_read) in ttf_cb_stream_read() argument32 lv_fs_read(stream->file, data, to_read, &br); in ttf_cb_stream_read()35 if(to_read + stream->position >= stream->size) { in ttf_cb_stream_read()36 to_read = stream->size - stream->position; in ttf_cb_stream_read()38 lv_memcpy(data, ((const unsigned char *)stream->data + stream->position), to_read); in ttf_cb_stream_read()39 stream->position += to_read; in ttf_cb_stream_read()
309 const uint32_t to_read = ndata <= bytes_left ? (uint32_t)ndata : bytes_left; in input_func() local310 if(to_read == 0) in input_func()313 memcpy(buff, io->raw_sjpg_data + io->raw_sjpg_data_next_read_pos, to_read); in input_func()315 io->raw_sjpg_data_next_read_pos += to_read; in input_func()316 return to_read; in input_func()