static willFit(numInputBits /*int*/, version, ecLevel) {
        // In the following comments, we use numbers of Version 7-H.
        // numBytes = 196
        const numBytes = version.getTotalCodewords();
        // getNumECBytes = 130
        const ecBlocks = version.getECBlocksForLevel(ecLevel);
        const numEcBytes = ecBlocks.getTotalECCodewords();
        // getNumDataBytes = 196 - 130 = 66
        const numDataBytes = numBytes - numEcBytes;
        const totalInputBytes = (numInputBits + 7) / 8;
        return numDataBytes >= totalInputBytes;
    }
/**
     * @return true if the number of input bits will fit in a code with the specified version and
     * error correction level.
     */
@return true if the number of input bits will fit in a code with the specified version and
error correction level.
@return true if the number of input bits will fit in a code with the specified version and error correction level .
static willFit(numInputBits , version, ecLevel) {
        const numBytes = version.getTotalCodewords();
        const ecBlocks = version.getECBlocksForLevel(ecLevel);
        const numEcBytes = ecBlocks.getTotalECCodewords();
        const numDataBytes = numBytes - numEcBytes;
        const totalInputBytes = (numInputBits + 7) / 8;
        return numDataBytes >= totalInputBytes;
    }
static willFit ( numInputBits , version , ecLevel ) { const numBytes = version . getTotalCodewords ( ) ; const ecBlocks = version . getECBlocksForLevel ( ecLevel ) ; const numEcBytes = ecBlocks . getTotalECCodewords ( ) ; const numDataBytes = numBytes - numEcBytes ; const totalInputBytes = ( numInputBits + 7 ) / 8 ; return numDataBytes >= totalInputBytes ; }
@return true if the number of input bits will fit in a code with the specified version and
 error correction level.
@return true if the number of input bits will fit in a code with the specified version and error correction level .
/*int*/ // In the following comments, we use numbers of Version 7-H. // numBytes = 196 // getNumECBytes = 130 // getNumDataBytes = 196 - 130 = 66