dup_span


Description:

[ Version ( since = "3.58" ) ]
public GenericArray<unowned ComponentBagItem>? dup_span (uint index)

Similar to the get_span, except the returned array is a copy of the span, thus it is thread safe.

Parameters:

this

an ComponentBag

index

span index, counting from 0

Returns:

a copy of a span at index, or null, when index is out of bounds