Lines Matching refs:limit

49   /* 'offset' and 'limit' define the range in the source window. */
51 apr_size_t limit;
74 'offset' and 'limit' always refer to the "virtual" source data
80 /* 'offset' and 'limit' define the range. */
82 apr_size_t limit;
241 apr_size_t limit,
246 node->limit = limit;
404 clean_tree(range_index_t *ndx, apr_size_t limit)
406 apr_size_t top_offset = limit + 1;
416 if (node->limit <= limit
417 || (node->offset < limit && offset < limit))
438 insert_range(apr_size_t offset, apr_size_t limit, apr_size_t target_offset,
445 node = alloc_range_index_node(ndx, offset, limit, target_offset);
451 && limit > ndx->tree->limit)
453 ndx->tree->limit = limit;
455 clean_tree(ndx, limit);
458 && limit > ndx->tree->limit)
465 || ndx->tree->limit < ndx->tree->next->offset
466 || limit > ndx->tree->next->limit);
472 if (ndx->tree->prev && ndx->tree->prev->limit > offset)
476 ndx->tree->limit = limit;
482 node = alloc_range_index_node(ndx, offset, limit,
494 clean_tree(ndx, limit);
504 node = alloc_range_index_node(ndx, offset, limit, target_offset);
508 clean_tree(ndx, limit);
530 apr_size_t limit,
536 node->limit = limit;
571 build_range_list(apr_size_t offset, apr_size_t limit, range_index_t *ndx)
577 while (offset < limit)
582 offset, limit, 0);
586 if (limit <= node->offset)
589 offset, limit, 0);
606 if (offset >= node->limit)
613 if (limit <= node->limit)
616 offset, limit, target_offset);
621 offset, node->limit, target_offset);
622 offset = node->limit;
629 /* A range's offset isn't smaller than its limit? Impossible! */
642 copy_source_ops(apr_size_t offset, apr_size_t limit,
656 const apr_size_t fix_limit = (off[0] >= limit ? 0
657 : (off[1] > limit ? off[1] - limit : 0));
664 if (off[0] >= limit)
802 /* NOTE: Remember that `offset' and `limit' refer to
806 const apr_size_t limit = op->offset + op->length;
811 range_list = build_range_list(offset, limit, range_index);
818 range->limit - range->offset,
821 copy_source_ops(range->offset, range->limit, tgt_off, 0,
825 tgt_off += range->limit - range->offset;
830 insert_range(offset, limit, target_offset, range_index);