Lines Matching refs:cbAvail
1398 size_t cbAvail = ps->current->datacount; in store_read_buffer_avail() local
1403 cbAvail += STORE_BUFFER_SIZE; in store_read_buffer_avail()
1409 if (cbAvail > ps->readpos) in store_read_buffer_avail()
1410 return cbAvail - ps->readpos; in store_read_buffer_avail()
1450 size_t cbAvail = store_read_buffer_size(ps) - ps->readpos; in store_read_imp() local
1452 if (cbAvail > 0) in store_read_imp()
1454 if (cbAvail > st) cbAvail = st; in store_read_imp()
1455 memcpy(pb, ps->next->buffer + ps->readpos, cbAvail); in store_read_imp()
1456 st -= cbAvail; in store_read_imp()
1457 pb += cbAvail; in store_read_imp()
1458 ps->readpos += cbAvail; in store_read_imp()
3229 png_size_t cb, cbAvail; in modifier_progressive_read() local
3241 cbAvail = store_read_buffer_avail(&pm->this); in modifier_progressive_read()
3243 cbAvail += pm->buffer_count - pm->buffer_position; in modifier_progressive_read()
3245 if (cb > cbAvail) in modifier_progressive_read()
3248 if (cbAvail == 0) in modifier_progressive_read()
3251 cb = cbAvail; in modifier_progressive_read()