Lines Matching refs:pos

1669 	intern->current.pos = 0;  in spl_dual_it_rewind()
1702 ZVAL_LONG(&intern->current.key, intern->current.pos); in spl_dual_it_fetch()
1718 intern->current.pos++; in spl_dual_it_next()
2475 …if (intern->u.limit.count != -1 && intern->current.pos >= intern->u.limit.offset + intern->u.limit… in spl_limit_it_valid()
2482 static inline void spl_limit_it_seek(spl_dual_it_object *intern, zend_long pos) in spl_limit_it_seek() argument
2487 if (pos < intern->u.limit.offset) { in spl_limit_it_seek()
2488 …annot seek to " ZEND_LONG_FMT " which is below the offset " ZEND_LONG_FMT, pos, intern->u.limit.of… in spl_limit_it_seek()
2491 if (pos >= intern->u.limit.offset + intern->u.limit.count && intern->u.limit.count != -1) { in spl_limit_it_seek()
2492 …FMT " which is behind offset " ZEND_LONG_FMT " plus count " ZEND_LONG_FMT, pos, intern->u.limit.of… in spl_limit_it_seek()
2495 if (pos != intern->current.pos && instanceof_function(intern->inner.ce, spl_ce_SeekableIterator)) { in spl_limit_it_seek()
2496 ZVAL_LONG(&zpos, pos); in spl_limit_it_seek()
2500 intern->current.pos = pos; in spl_limit_it_seek()
2508 if (pos < intern->current.pos) { in spl_limit_it_seek()
2511 while (pos > intern->current.pos && spl_dual_it_valid(intern) == SUCCESS) { in spl_limit_it_seek()
2547 …RETURN_BOOL((intern->u.limit.count == -1 || intern->current.pos < intern->u.limit.offset + intern-… in SPL_METHOD()
2559 …if (intern->u.limit.count == -1 || intern->current.pos < intern->u.limit.offset + intern->u.limit.… in SPL_METHOD()
2569 zend_long pos; in SPL_METHOD() local
2571 if (zend_parse_parameters(ZEND_NUM_ARGS(), "l", &pos) == FAILURE) { in SPL_METHOD()
2576 spl_limit_it_seek(intern, pos); in SPL_METHOD()
2577 RETURN_LONG(intern->current.pos); in SPL_METHOD()
2586 RETURN_LONG(intern->current.pos); in SPL_METHOD()