function calculateDistanceAlphabetSize(npostfix, ndirect, maxndistbits) {
    return 16 + ndirect + 2 * (maxndistbits << npostfix);
  }
@param {number} npostfix
@param {number} ndirect
@param {number} maxndistbits
@return {number}