calculates and returns the size needed to encode the length passed.
Number of bytes to be encoded
See Implementation
calculates and returns the size needed to encode the length passed.