uint32_t RefCollection::removeAt()

in libs/core/RefCollection.cpp [55:71]


uint32_t RefCollection::removeAt(int x)
{
    if (!in_range(x))
        return 0;

    uint32_t e = data_storage[x];

    if (isRef())
        decr(e);

    // Remove the old item from the data array
    data_length--;
    for (int i = x; i < data_length; i++)
        data_storage[i] = data_storage[i + 1];

        return e;
}