Lines Matching refs:size
51 int size;
99 static int add_entry(URLContext *h, const unsigned char *buf, int size)
117 ret = write(c->fd, buf, size);
131 entry->logical_pos + entry->size != c->logical_pos ||
132 entry->physical_pos + entry->size != pos
142 entry->size = ret;
151 entry->size += ret;
162 static int cache_read(URLContext *h, unsigned char *buf, int size)
176 if (in_block_pos < entry->size) {
186 r = read(c->fd, buf, FFMIN(size, entry->size - in_block_pos));
209 r = ffurl_read(c->inner, buf, size);
210 if (r == AVERROR_EOF && size>0) {
268 int size = sizeof(tmp);
270 size = FFMIN(sizeof(tmp), pos - c->logical_pos);
271 ret = cache_read(h, tmp, size);