Calculates the length for decoding.
The length of a source.
The maximum length which the result may have after a source with sourceLength is decoded.
See Implementation
Calculates the length for decoding.