MCPcopy Create free account
hub / github.com/breck7/scroll / getNumDataCodewords

Method getNumDataCodewords

external/.qrcodegen.js:232–234  ·  view source on GitHub ↗
(t, r)

Source from the content-addressed store, hash-verified

230 return o(208 <= r && r <= 29648), r
231 }
232 static getNumDataCodewords(t, r) {
233 return Math.floor(e.getNumRawDataModules(t) / 8) - e.ECC_CODEWORDS_PER_BLOCK[r.ordinal][t] * e.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][t]
234 }
235 static reedSolomonComputeDivisor(t) {
236 if (t < 1 || t > 255) throw new RangeError("Degree out of range")
237 let r = []

Callers 2

encodeSegmentsMethod · 0.80
addEccAndInterleaveMethod · 0.80

Calls 1

getNumRawDataModulesMethod · 0.80

Tested by

no test coverage detected