TArrayView::SliceRangeCheck

Checks if a slice range [Index, Index+InNum) is in array range.

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Containers/ArrayView.h

Include

#include "Containers/ArrayView.h"

Syntax

void SliceRangeCheck
(
    SizeType Index,
    SizeType InNum
) const

Remarks

Checks if a slice range [Index, Index+InNum) is in array range. Length is 0 is allowed on empty arrays; Index must be 0 in that case.

Parameters

Parameter

Description

Index

Starting index of the slice.

InNum

Length of the slice.