Lines Matching refs:pos

1677 	intern->current.pos = 0;  in spl_dual_it_rewind()
1710 ZVAL_LONG(&intern->current.key, intern->current.pos); in spl_dual_it_fetch()
1726 intern->current.pos++; in spl_dual_it_next()
2481 …if (intern->u.limit.count != -1 && intern->current.pos >= intern->u.limit.offset + intern->u.limit… in spl_limit_it_valid()
2488 static inline void spl_limit_it_seek(spl_dual_it_object *intern, zend_long pos) in spl_limit_it_seek() argument
2493 if (pos < intern->u.limit.offset) { in spl_limit_it_seek()
2494 …annot seek to " ZEND_LONG_FMT " which is below the offset " ZEND_LONG_FMT, pos, intern->u.limit.of… in spl_limit_it_seek()
2497 if (pos >= intern->u.limit.offset + intern->u.limit.count && intern->u.limit.count != -1) { in spl_limit_it_seek()
2498 …FMT " which is behind offset " ZEND_LONG_FMT " plus count " ZEND_LONG_FMT, pos, intern->u.limit.of… in spl_limit_it_seek()
2501 if (pos != intern->current.pos && instanceof_function(intern->inner.ce, spl_ce_SeekableIterator)) { in spl_limit_it_seek()
2502 ZVAL_LONG(&zpos, pos); in spl_limit_it_seek()
2507 intern->current.pos = pos; in spl_limit_it_seek()
2515 if (pos < intern->current.pos) { in spl_limit_it_seek()
2518 while (pos > intern->current.pos && spl_dual_it_valid(intern) == SUCCESS) { in spl_limit_it_seek()
2554 …RETURN_BOOL((intern->u.limit.count == -1 || intern->current.pos < intern->u.limit.offset + intern-… in SPL_METHOD()
2566 …if (intern->u.limit.count == -1 || intern->current.pos < intern->u.limit.offset + intern->u.limit.… in SPL_METHOD()
2576 zend_long pos; in SPL_METHOD() local
2578 if (zend_parse_parameters(ZEND_NUM_ARGS(), "l", &pos) == FAILURE) { in SPL_METHOD()
2583 spl_limit_it_seek(intern, pos); in SPL_METHOD()
2584 RETURN_LONG(intern->current.pos); in SPL_METHOD()
2593 RETURN_LONG(intern->current.pos); in SPL_METHOD()