Lines Matching refs:rlen
498 lws_filepos_t ramount, rlen, cur = lws_vfs_tell(fd); in lws_fops_zip_read() local
514 rlen = len; in lws_fops_zip_read()
515 if (rlen > fd->pos - priv->exp_uncomp_pos) in lws_fops_zip_read()
516 rlen = fd->pos - priv->exp_uncomp_pos; in lws_fops_zip_read()
517 if (lws_fops_zip_read(fd, amount, buf, rlen)) in lws_fops_zip_read()
528 rlen = sizeof(priv->rbuf); in lws_fops_zip_read()
529 if (rlen > priv->hdr.comp_size - in lws_fops_zip_read()
531 rlen = priv->hdr.comp_size - in lws_fops_zip_read()
537 rlen)) in lws_fops_zip_read()
580 rlen = sizeof(hd) - fd->pos; in lws_fops_zip_read()
581 if (rlen > len) in lws_fops_zip_read()
582 rlen = len; in lws_fops_zip_read()
584 memcpy(buf, hd + fd->pos, (size_t)rlen); in lws_fops_zip_read()
585 fd->pos += rlen; in lws_fops_zip_read()
586 buf += rlen; in lws_fops_zip_read()
587 len -= rlen; in lws_fops_zip_read()
588 *amount += rlen; in lws_fops_zip_read()
596 rlen = priv->hdr.comp_size - (priv->zip_fop_fd->pos - in lws_fops_zip_read()
598 if (rlen > len) in lws_fops_zip_read()
599 rlen = len; in lws_fops_zip_read()
601 if (rlen && in lws_fops_zip_read()
605 &ramount, buf, rlen)) in lws_fops_zip_read()
620 rlen = sizeof(priv->u) - cur; in lws_fops_zip_read()
621 if (rlen > len) in lws_fops_zip_read()
622 rlen = len; in lws_fops_zip_read()
624 memcpy(buf, priv->u.trailer8 + cur, (size_t)rlen); in lws_fops_zip_read()
626 *amount += rlen; in lws_fops_zip_read()
627 fd->pos += rlen; in lws_fops_zip_read()