encodeOutSizeProtected

protected abstract fun encodeOutSizeProtected(unEncodedSize: Long): Long(source)

Calculate and return an exact (preferably), or maximum, size that an encoding would be for the unEncodedSize data.

Implementations of this function must not take lineBreakInterval into consideration when pre-calculating the output size; that is already handled by encodeOutMaxSize based off of the return value for this function.

Will only receive values greater than 0.

See also