enterRecursion

expect fun enterRecursion(cap: Int)

Increments the recursion depth counter and throws if the depth exceeds cap.

Call before each recursive invocation of a self-referential XDR decode function. Must be paired with exitRecursion in a try/finally block.

Parameters

cap

Maximum allowed nesting depth (inclusive)

Throws

actual fun enterRecursion(cap: Int)
actual fun enterRecursion(cap: Int)
actual fun enterRecursion(cap: Int)