Lines Matching defs:size

49 /* The IO buffer size is unrelated to the max URL size in itself, but needs
1559 static int http_buf_read(URLContext *h, uint8_t *buf, int size)
1580 "Chunked encoding data size: %"PRIu64"\n",
1594 av_log(h, AV_LOG_ERROR, "Invalid chunk size %"PRIu64"\n",
1599 size = FFMIN(size, s->chunksize);
1605 if (len > size)
1606 len = size;
1613 len = ffurl_read(s->hd, buf, size);
1635 static int http_buf_read_compressed(URLContext *h, uint8_t *buf, int size)
1654 s->inflate_stream.avail_out = size;
1662 return size - s->inflate_stream.avail_out;
1668 static int http_read_stream(URLContext *h, uint8_t *buf, int size)
1686 return http_buf_read_compressed(h, buf, size);
1688 read_ret = http_buf_read(h, buf, size);
1716 read_ret = http_buf_read(h, buf, size);
1724 static int http_read_stream_all(URLContext *h, uint8_t *buf, int size)
1727 while (pos < size) {
1728 int len = http_read_stream(h, buf + pos, size - pos);
1764 static int store_icy(URLContext *h, int size)
1799 return FFMIN(size, remaining);
1802 static int http_read(URLContext *h, uint8_t *buf, int size)
1807 size = store_icy(h, size);
1808 if (size < 0)
1809 return size;
1812 size = http_read_stream(h, buf, size);
1813 if (size > 0)
1814 s->icy_data_read += size;
1815 return size;
1819 static int http_write(URLContext *h, const uint8_t *buf, int size)
1828 return ffurl_write(s->hd, buf, size);
1831 /* silently ignore zero-size data since chunk encoding that would
1833 if (size > 0) {
1835 snprintf(temp, sizeof(temp), "%x\r\n", size);
1838 (ret = ffurl_write(s->hd, buf, size)) < 0 ||
1842 return size;
2127 static int http_proxy_write(URLContext *h, const uint8_t *buf, int size)
2130 return ffurl_write(s->hd, buf, size);