Home
last modified time | relevance | path

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

/lvgl-latest/src/libs/tiny_ttf/
Dlv_tiny_ttf.c44 static void ttf_cb_stream_read(ttf_cb_stream_t * stream, void * data, size_t to_read);
176 static void ttf_cb_stream_read(ttf_cb_stream_t * stream, void * data, size_t to_read) in ttf_cb_stream_read() argument
180 lv_fs_read(stream->file, data, to_read, &br); in ttf_cb_stream_read()
183 if(to_read + stream->position >= stream->size) { in ttf_cb_stream_read()
184 to_read = stream->size - stream->position; in ttf_cb_stream_read()
186 memcpy(data, ((const unsigned char *)stream->data + stream->position), to_read); in ttf_cb_stream_read()
187 stream->position += to_read; in ttf_cb_stream_read()