NRP Core  1.4.1
repeated_field_proxy.cpp File Reference

Functions

Py_ssize_t ExtractIndices (PyObject *indices, Py_ssize_t &from, Py_ssize_t &to, Py_ssize_t &step, Py_ssize_t length)
 Function which processes an index or slice object and sets from, to and step appropriately. More...
 

Function Documentation

◆ ExtractIndices()

Py_ssize_t ExtractIndices ( PyObject *  indices,
Py_ssize_t &  from,
Py_ssize_t &  to,
Py_ssize_t &  step,
Py_ssize_t  length 
)

Function which processes an index or slice object and sets from, to and step appropriately.

Returns the size of the described range, -1 if 'indices' is not a valid slice