decodeOutMaxSizeOrFailProtected

protected abstract fun decodeOutMaxSizeOrFailProtected(encodedSize: Int, input: DecoderInput): Int(source)

Calculate and return a maximum size that a decoding would be for the encodedSize data.

Implementations of this function must not take lineBreakInterval into consideration when pre-calculating the output size, as data being decoded may not have been encoded using this Config. Additionally, input should only be parsed when absolutely necessary, such as validation of a checksum.

Will only receive values greater than 0.

See also