Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Method

GetOffsetAndLength

func GetOffsetAndLength(length: int) -> (int, int)

Declaring type: Range
Module: System
Assembly: System.Runtime.dll
Source file: Range.rvn

Resolves a validated offset and count; negative lengths, reversed or out-of-bounds ranges fault with IndexOutOfRange.

Parameters

Name Type Description
length Int32

Return value

(Offset: Int32, Length: Int32)