| 49 | } |
| 50 | |
| 51 | int32 SubLoopScopes(TArray<FScope>& OutSubRanges, const int32 MaxItems, const int32 RangeSize) |
| 52 | { |
| 53 | OutSubRanges.Empty(); |
| 54 | OutSubRanges.Reserve((MaxItems + RangeSize - 1) / RangeSize); |
| 55 | |
| 56 | for (int32 CurrentCount = 0; CurrentCount < MaxItems; CurrentCount += RangeSize) |
| 57 | { |
| 58 | OutSubRanges.Emplace(CurrentCount, FMath::Min(RangeSize, MaxItems - CurrentCount), OutSubRanges.Num()); |
| 59 | } |
| 60 | |
| 61 | return OutSubRanges.Num(); |
| 62 | } |
| 63 | |
| 64 | FAsyncHandle::~FAsyncHandle() |
| 65 | { |
no test coverage detected