decodeOutMaxSizeOrFail

Pre-calculates and returns the maximum size of the output, after decoding would occur, for input that is known based off of the Config options set for the implementation.

Encoded data may contain spaces or new lines which are ignored if isLenient is set to true, or the encoding spec may allow for certain characters which are to be ignored (Base32 Crockford ignores hyphens). The output of this function can be incorrect in those instances and the actual decoded output size may be smaller than the value returned here.

This is a "best guess" and assumes that every character for input will be decoded.

Will always return a value greater than or equal to 0.

Parameters

input

The data which is to be decoded.

See also

Throws

If the calculates size exceeded Int.MAX_VALUE.

If the implementation has integrity checks to fail quickly and verification of the input failed (e.g. Base32 Crockford's checkSymbol).