isValid

fun isValid(dimensionSize: Int): Boolean(source)

Validates that this slice is compatible with the given dimension size.

This method checks that all indices referenced by the slice are within the valid bounds for a dimension of the specified size. Different slice types have different validation requirements.

Return

true if the slice is valid for the given dimension size

Parameters

dimensionSize

the size of the dimension this slice will be applied to