Function ecs_page_iter

Synopsis

#include <include/flecs.h>

FLECS_API ecs_iter_t ecs_page_iter(const ecs_iter_t *it, int32_t offset, int32_t limit)

Description

Create a paged iterator. Paged iterators limit the results to those starting from 'offset', and will return at most 'limit' results.

The iterator must be iterated with ecs_page_next.

A paged iterator acts as a passthrough for data exposed by the parent iterator, so that any data provided by the parent will also be provided by the paged iterator.

Parameters

it - The source iterator.

offset - The number of entities to skip.

limit - The maximum number of entities to iterate.

Returns
A page iterator.

Source

Line 3879 in include/flecs.h.