to Offset Limit
Converts backward pagination arguments to offset/limit.
lastdetermines the page size (defaults to defaultPageSize).beforecursor encodes the index of the first item on the next page; the offset and limit are computed to return thelastitems ending just before that position. Both are clamped so the window never extends before index 0.If
beforeis absent, OffsetLimit.backwards is set totrueand offset is 0, signalling viaduct.api.internal.ConnectionBuilder.fromList to take from the tail of the full list rather than the head.