Calculates the length for encoding.
The length of a source.
The resulting length after a source with sourceLength is encoded.
See Implementation
Calculates the length for encoding.