This PR extracts a 'decode a list of base64 VLQ' algorithm that consumes a string wholly and returns all contained VLQ numbers as a list. We can share this algorithm between decoding mappings and originalScopes/generatedRanges of the scopes proposal.
It also makes the algorithm slightly more readable as we can get rid of position and we don't necessarily need the relative* variables as they only have a single use-site.
This PR extracts a 'decode a list of base64 VLQ' algorithm that consumes a string wholly and returns all contained VLQ numbers as a list. We can share this algorithm between decoding
mappings
andoriginalScopes
/generatedRanges
of the scopes proposal.It also makes the algorithm slightly more readable as we can get rid of
position
and we don't necessarily need therelative*
variables as they only have a single use-site.