@nuintun/qrcode
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -127,11 +127,11 @@ 'use strict'; | ||
* @function SJIS | ||
* @param {string} str | ||
* @param {string} text | ||
* @returns {number[]} | ||
*/ | ||
function SJIS(str) { | ||
function SJIS(text) { | ||
var bytes = []; | ||
var length = str.length; | ||
var length = text.length; | ||
var UTF8_TO_SJIS = getTables().UTF8_TO_SJIS; | ||
for (var i = 0; i < length; i++) { | ||
var code = str.charCodeAt(i); | ||
var code = text.charCodeAt(i); | ||
var byte = UTF8_TO_SJIS[code]; | ||
@@ -138,0 +138,0 @@ if (byte != null) { |
@@ -9,7 +9,12 @@ 'use strict'; | ||
*/ | ||
function UTF16(str) { | ||
/** | ||
* @function UTF16 | ||
* @param {string} text | ||
* @returns {number[]} | ||
*/ | ||
function UTF16(text) { | ||
var bytes = []; | ||
var length = str.length; | ||
var length = text.length; | ||
for (var i = 0; i < length; i++) { | ||
bytes.push(str.charCodeAt(i)); | ||
bytes.push(text.charCodeAt(i)); | ||
} | ||
@@ -16,0 +21,0 @@ return bytes; |
@@ -11,12 +11,12 @@ 'use strict'; | ||
* @function UTF8 | ||
* @param {string} str | ||
* @param {string} text | ||
* @returns {number[]} | ||
* @see https://github.com/google/closure-library/blob/master/closure/goog/crypt/crypt.js | ||
*/ | ||
function UTF8(str) { | ||
function UTF8(text) { | ||
var bytes = []; | ||
var length = text.length; | ||
var pos = 0; | ||
var bytes = []; | ||
var length = str.length; | ||
for (var i = 0; i < length; i++) { | ||
var code = str.charCodeAt(i); | ||
var code = text.charCodeAt(i); | ||
if (code < 128) { | ||
@@ -29,5 +29,5 @@ bytes[pos++] = code; | ||
} | ||
else if ((code & 0xfc00) === 0xd800 && i + 1 < length && (str.charCodeAt(i + 1) & 0xfc00) === 0xdc00) { | ||
else if ((code & 0xfc00) === 0xd800 && i + 1 < length && (text.charCodeAt(i + 1) & 0xfc00) === 0xdc00) { | ||
// Surrogate Pair | ||
code = 0x10000 + ((code & 0x03ff) << 10) + (str.charCodeAt(++i) & 0x03ff); | ||
code = 0x10000 + ((code & 0x03ff) << 10) + (text.charCodeAt(++i) & 0x03ff); | ||
bytes[pos++] = (code >> 18) | 240; | ||
@@ -34,0 +34,0 @@ bytes[pos++] = ((code >> 12) & 63) | 128; |
@@ -118,7 +118,13 @@ 'use strict'; | ||
ecCodewordsPerBlock: 22, | ||
ecBlocks: [{ numBlocks: 2, dataCodewordsPerBlock: 11 }, { numBlocks: 2, dataCodewordsPerBlock: 12 }] | ||
ecBlocks: [ | ||
{ numBlocks: 2, dataCodewordsPerBlock: 11 }, | ||
{ numBlocks: 2, dataCodewordsPerBlock: 12 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 18, | ||
ecBlocks: [{ numBlocks: 2, dataCodewordsPerBlock: 15 }, { numBlocks: 2, dataCodewordsPerBlock: 16 }] | ||
ecBlocks: [ | ||
{ numBlocks: 2, dataCodewordsPerBlock: 15 }, | ||
{ numBlocks: 2, dataCodewordsPerBlock: 16 } | ||
] | ||
} | ||
@@ -165,7 +171,13 @@ ] | ||
ecCodewordsPerBlock: 26, | ||
ecBlocks: [{ numBlocks: 4, dataCodewordsPerBlock: 13 }, { numBlocks: 1, dataCodewordsPerBlock: 14 }] | ||
ecBlocks: [ | ||
{ numBlocks: 4, dataCodewordsPerBlock: 13 }, | ||
{ numBlocks: 1, dataCodewordsPerBlock: 14 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 18, | ||
ecBlocks: [{ numBlocks: 2, dataCodewordsPerBlock: 14 }, { numBlocks: 4, dataCodewordsPerBlock: 15 }] | ||
ecBlocks: [ | ||
{ numBlocks: 2, dataCodewordsPerBlock: 14 }, | ||
{ numBlocks: 4, dataCodewordsPerBlock: 15 } | ||
] | ||
} | ||
@@ -181,3 +193,6 @@ ] | ||
ecCodewordsPerBlock: 22, | ||
ecBlocks: [{ numBlocks: 2, dataCodewordsPerBlock: 38 }, { numBlocks: 2, dataCodewordsPerBlock: 39 }] | ||
ecBlocks: [ | ||
{ numBlocks: 2, dataCodewordsPerBlock: 38 }, | ||
{ numBlocks: 2, dataCodewordsPerBlock: 39 } | ||
] | ||
}, | ||
@@ -190,7 +205,13 @@ { | ||
ecCodewordsPerBlock: 26, | ||
ecBlocks: [{ numBlocks: 4, dataCodewordsPerBlock: 14 }, { numBlocks: 2, dataCodewordsPerBlock: 15 }] | ||
ecBlocks: [ | ||
{ numBlocks: 4, dataCodewordsPerBlock: 14 }, | ||
{ numBlocks: 2, dataCodewordsPerBlock: 15 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 22, | ||
ecBlocks: [{ numBlocks: 4, dataCodewordsPerBlock: 18 }, { numBlocks: 2, dataCodewordsPerBlock: 19 }] | ||
ecBlocks: [ | ||
{ numBlocks: 4, dataCodewordsPerBlock: 18 }, | ||
{ numBlocks: 2, dataCodewordsPerBlock: 19 } | ||
] | ||
} | ||
@@ -206,3 +227,6 @@ ] | ||
ecCodewordsPerBlock: 22, | ||
ecBlocks: [{ numBlocks: 3, dataCodewordsPerBlock: 36 }, { numBlocks: 2, dataCodewordsPerBlock: 37 }] | ||
ecBlocks: [ | ||
{ numBlocks: 3, dataCodewordsPerBlock: 36 }, | ||
{ numBlocks: 2, dataCodewordsPerBlock: 37 } | ||
] | ||
}, | ||
@@ -215,7 +239,13 @@ { | ||
ecCodewordsPerBlock: 24, | ||
ecBlocks: [{ numBlocks: 4, dataCodewordsPerBlock: 12 }, { numBlocks: 4, dataCodewordsPerBlock: 13 }] | ||
ecBlocks: [ | ||
{ numBlocks: 4, dataCodewordsPerBlock: 12 }, | ||
{ numBlocks: 4, dataCodewordsPerBlock: 13 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 20, | ||
ecBlocks: [{ numBlocks: 4, dataCodewordsPerBlock: 16 }, { numBlocks: 4, dataCodewordsPerBlock: 17 }] | ||
ecBlocks: [ | ||
{ numBlocks: 4, dataCodewordsPerBlock: 16 }, | ||
{ numBlocks: 4, dataCodewordsPerBlock: 17 } | ||
] | ||
} | ||
@@ -231,15 +261,27 @@ ] | ||
ecCodewordsPerBlock: 26, | ||
ecBlocks: [{ numBlocks: 4, dataCodewordsPerBlock: 43 }, { numBlocks: 1, dataCodewordsPerBlock: 44 }] | ||
ecBlocks: [ | ||
{ numBlocks: 4, dataCodewordsPerBlock: 43 }, | ||
{ numBlocks: 1, dataCodewordsPerBlock: 44 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 18, | ||
ecBlocks: [{ numBlocks: 2, dataCodewordsPerBlock: 68 }, { numBlocks: 2, dataCodewordsPerBlock: 69 }] | ||
ecBlocks: [ | ||
{ numBlocks: 2, dataCodewordsPerBlock: 68 }, | ||
{ numBlocks: 2, dataCodewordsPerBlock: 69 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 6, dataCodewordsPerBlock: 15 }, { numBlocks: 2, dataCodewordsPerBlock: 16 }] | ||
ecBlocks: [ | ||
{ numBlocks: 6, dataCodewordsPerBlock: 15 }, | ||
{ numBlocks: 2, dataCodewordsPerBlock: 16 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 24, | ||
ecBlocks: [{ numBlocks: 6, dataCodewordsPerBlock: 19 }, { numBlocks: 2, dataCodewordsPerBlock: 20 }] | ||
ecBlocks: [ | ||
{ numBlocks: 6, dataCodewordsPerBlock: 19 }, | ||
{ numBlocks: 2, dataCodewordsPerBlock: 20 } | ||
] | ||
} | ||
@@ -255,3 +297,6 @@ ] | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 1, dataCodewordsPerBlock: 50 }, { numBlocks: 4, dataCodewordsPerBlock: 51 }] | ||
ecBlocks: [ | ||
{ numBlocks: 1, dataCodewordsPerBlock: 50 }, | ||
{ numBlocks: 4, dataCodewordsPerBlock: 51 } | ||
] | ||
}, | ||
@@ -264,7 +309,13 @@ { | ||
ecCodewordsPerBlock: 24, | ||
ecBlocks: [{ numBlocks: 3, dataCodewordsPerBlock: 12 }, { numBlocks: 8, dataCodewordsPerBlock: 13 }] | ||
ecBlocks: [ | ||
{ numBlocks: 3, dataCodewordsPerBlock: 12 }, | ||
{ numBlocks: 8, dataCodewordsPerBlock: 13 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 4, dataCodewordsPerBlock: 22 }, { numBlocks: 4, dataCodewordsPerBlock: 23 }] | ||
ecBlocks: [ | ||
{ numBlocks: 4, dataCodewordsPerBlock: 22 }, | ||
{ numBlocks: 4, dataCodewordsPerBlock: 23 } | ||
] | ||
} | ||
@@ -280,15 +331,27 @@ ] | ||
ecCodewordsPerBlock: 22, | ||
ecBlocks: [{ numBlocks: 6, dataCodewordsPerBlock: 36 }, { numBlocks: 2, dataCodewordsPerBlock: 37 }] | ||
ecBlocks: [ | ||
{ numBlocks: 6, dataCodewordsPerBlock: 36 }, | ||
{ numBlocks: 2, dataCodewordsPerBlock: 37 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 24, | ||
ecBlocks: [{ numBlocks: 2, dataCodewordsPerBlock: 92 }, { numBlocks: 2, dataCodewordsPerBlock: 93 }] | ||
ecBlocks: [ | ||
{ numBlocks: 2, dataCodewordsPerBlock: 92 }, | ||
{ numBlocks: 2, dataCodewordsPerBlock: 93 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 7, dataCodewordsPerBlock: 14 }, { numBlocks: 4, dataCodewordsPerBlock: 15 }] | ||
ecBlocks: [ | ||
{ numBlocks: 7, dataCodewordsPerBlock: 14 }, | ||
{ numBlocks: 4, dataCodewordsPerBlock: 15 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 26, | ||
ecBlocks: [{ numBlocks: 4, dataCodewordsPerBlock: 20 }, { numBlocks: 6, dataCodewordsPerBlock: 21 }] | ||
ecBlocks: [ | ||
{ numBlocks: 4, dataCodewordsPerBlock: 20 }, | ||
{ numBlocks: 6, dataCodewordsPerBlock: 21 } | ||
] | ||
} | ||
@@ -304,3 +367,6 @@ ] | ||
ecCodewordsPerBlock: 22, | ||
ecBlocks: [{ numBlocks: 8, dataCodewordsPerBlock: 37 }, { numBlocks: 1, dataCodewordsPerBlock: 38 }] | ||
ecBlocks: [ | ||
{ numBlocks: 8, dataCodewordsPerBlock: 37 }, | ||
{ numBlocks: 1, dataCodewordsPerBlock: 38 } | ||
] | ||
}, | ||
@@ -313,7 +379,13 @@ { | ||
ecCodewordsPerBlock: 22, | ||
ecBlocks: [{ numBlocks: 12, dataCodewordsPerBlock: 11 }, { numBlocks: 4, dataCodewordsPerBlock: 12 }] | ||
ecBlocks: [ | ||
{ numBlocks: 12, dataCodewordsPerBlock: 11 }, | ||
{ numBlocks: 4, dataCodewordsPerBlock: 12 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 24, | ||
ecBlocks: [{ numBlocks: 8, dataCodewordsPerBlock: 20 }, { numBlocks: 4, dataCodewordsPerBlock: 21 }] | ||
ecBlocks: [ | ||
{ numBlocks: 8, dataCodewordsPerBlock: 20 }, | ||
{ numBlocks: 4, dataCodewordsPerBlock: 21 } | ||
] | ||
} | ||
@@ -329,15 +401,27 @@ ] | ||
ecCodewordsPerBlock: 24, | ||
ecBlocks: [{ numBlocks: 4, dataCodewordsPerBlock: 40 }, { numBlocks: 5, dataCodewordsPerBlock: 41 }] | ||
ecBlocks: [ | ||
{ numBlocks: 4, dataCodewordsPerBlock: 40 }, | ||
{ numBlocks: 5, dataCodewordsPerBlock: 41 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 3, dataCodewordsPerBlock: 115 }, { numBlocks: 1, dataCodewordsPerBlock: 116 }] | ||
ecBlocks: [ | ||
{ numBlocks: 3, dataCodewordsPerBlock: 115 }, | ||
{ numBlocks: 1, dataCodewordsPerBlock: 116 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 24, | ||
ecBlocks: [{ numBlocks: 11, dataCodewordsPerBlock: 12 }, { numBlocks: 5, dataCodewordsPerBlock: 13 }] | ||
ecBlocks: [ | ||
{ numBlocks: 11, dataCodewordsPerBlock: 12 }, | ||
{ numBlocks: 5, dataCodewordsPerBlock: 13 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 20, | ||
ecBlocks: [{ numBlocks: 11, dataCodewordsPerBlock: 16 }, { numBlocks: 5, dataCodewordsPerBlock: 17 }] | ||
ecBlocks: [ | ||
{ numBlocks: 11, dataCodewordsPerBlock: 16 }, | ||
{ numBlocks: 5, dataCodewordsPerBlock: 17 } | ||
] | ||
} | ||
@@ -353,15 +437,27 @@ ] | ||
ecCodewordsPerBlock: 24, | ||
ecBlocks: [{ numBlocks: 5, dataCodewordsPerBlock: 41 }, { numBlocks: 5, dataCodewordsPerBlock: 42 }] | ||
ecBlocks: [ | ||
{ numBlocks: 5, dataCodewordsPerBlock: 41 }, | ||
{ numBlocks: 5, dataCodewordsPerBlock: 42 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 22, | ||
ecBlocks: [{ numBlocks: 5, dataCodewordsPerBlock: 87 }, { numBlocks: 1, dataCodewordsPerBlock: 88 }] | ||
ecBlocks: [ | ||
{ numBlocks: 5, dataCodewordsPerBlock: 87 }, | ||
{ numBlocks: 1, dataCodewordsPerBlock: 88 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 24, | ||
ecBlocks: [{ numBlocks: 11, dataCodewordsPerBlock: 12 }, { numBlocks: 7, dataCodewordsPerBlock: 13 }] | ||
ecBlocks: [ | ||
{ numBlocks: 11, dataCodewordsPerBlock: 12 }, | ||
{ numBlocks: 7, dataCodewordsPerBlock: 13 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 5, dataCodewordsPerBlock: 24 }, { numBlocks: 7, dataCodewordsPerBlock: 25 }] | ||
ecBlocks: [ | ||
{ numBlocks: 5, dataCodewordsPerBlock: 24 }, | ||
{ numBlocks: 7, dataCodewordsPerBlock: 25 } | ||
] | ||
} | ||
@@ -377,15 +473,27 @@ ] | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 7, dataCodewordsPerBlock: 45 }, { numBlocks: 3, dataCodewordsPerBlock: 46 }] | ||
ecBlocks: [ | ||
{ numBlocks: 7, dataCodewordsPerBlock: 45 }, | ||
{ numBlocks: 3, dataCodewordsPerBlock: 46 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 24, | ||
ecBlocks: [{ numBlocks: 5, dataCodewordsPerBlock: 98 }, { numBlocks: 1, dataCodewordsPerBlock: 99 }] | ||
ecBlocks: [ | ||
{ numBlocks: 5, dataCodewordsPerBlock: 98 }, | ||
{ numBlocks: 1, dataCodewordsPerBlock: 99 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 3, dataCodewordsPerBlock: 15 }, { numBlocks: 13, dataCodewordsPerBlock: 16 }] | ||
ecBlocks: [ | ||
{ numBlocks: 3, dataCodewordsPerBlock: 15 }, | ||
{ numBlocks: 13, dataCodewordsPerBlock: 16 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 24, | ||
ecBlocks: [{ numBlocks: 15, dataCodewordsPerBlock: 19 }, { numBlocks: 2, dataCodewordsPerBlock: 20 }] | ||
ecBlocks: [ | ||
{ numBlocks: 15, dataCodewordsPerBlock: 19 }, | ||
{ numBlocks: 2, dataCodewordsPerBlock: 20 } | ||
] | ||
} | ||
@@ -401,15 +509,27 @@ ] | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 10, dataCodewordsPerBlock: 46 }, { numBlocks: 1, dataCodewordsPerBlock: 47 }] | ||
ecBlocks: [ | ||
{ numBlocks: 10, dataCodewordsPerBlock: 46 }, | ||
{ numBlocks: 1, dataCodewordsPerBlock: 47 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 1, dataCodewordsPerBlock: 107 }, { numBlocks: 5, dataCodewordsPerBlock: 108 }] | ||
ecBlocks: [ | ||
{ numBlocks: 1, dataCodewordsPerBlock: 107 }, | ||
{ numBlocks: 5, dataCodewordsPerBlock: 108 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 2, dataCodewordsPerBlock: 14 }, { numBlocks: 17, dataCodewordsPerBlock: 15 }] | ||
ecBlocks: [ | ||
{ numBlocks: 2, dataCodewordsPerBlock: 14 }, | ||
{ numBlocks: 17, dataCodewordsPerBlock: 15 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 1, dataCodewordsPerBlock: 22 }, { numBlocks: 15, dataCodewordsPerBlock: 23 }] | ||
ecBlocks: [ | ||
{ numBlocks: 1, dataCodewordsPerBlock: 22 }, | ||
{ numBlocks: 15, dataCodewordsPerBlock: 23 } | ||
] | ||
} | ||
@@ -425,15 +545,27 @@ ] | ||
ecCodewordsPerBlock: 26, | ||
ecBlocks: [{ numBlocks: 9, dataCodewordsPerBlock: 43 }, { numBlocks: 4, dataCodewordsPerBlock: 44 }] | ||
ecBlocks: [ | ||
{ numBlocks: 9, dataCodewordsPerBlock: 43 }, | ||
{ numBlocks: 4, dataCodewordsPerBlock: 44 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 5, dataCodewordsPerBlock: 120 }, { numBlocks: 1, dataCodewordsPerBlock: 121 }] | ||
ecBlocks: [ | ||
{ numBlocks: 5, dataCodewordsPerBlock: 120 }, | ||
{ numBlocks: 1, dataCodewordsPerBlock: 121 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 2, dataCodewordsPerBlock: 14 }, { numBlocks: 19, dataCodewordsPerBlock: 15 }] | ||
ecBlocks: [ | ||
{ numBlocks: 2, dataCodewordsPerBlock: 14 }, | ||
{ numBlocks: 19, dataCodewordsPerBlock: 15 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 17, dataCodewordsPerBlock: 22 }, { numBlocks: 1, dataCodewordsPerBlock: 23 }] | ||
ecBlocks: [ | ||
{ numBlocks: 17, dataCodewordsPerBlock: 22 }, | ||
{ numBlocks: 1, dataCodewordsPerBlock: 23 } | ||
] | ||
} | ||
@@ -449,15 +581,27 @@ ] | ||
ecCodewordsPerBlock: 26, | ||
ecBlocks: [{ numBlocks: 3, dataCodewordsPerBlock: 44 }, { numBlocks: 11, dataCodewordsPerBlock: 45 }] | ||
ecBlocks: [ | ||
{ numBlocks: 3, dataCodewordsPerBlock: 44 }, | ||
{ numBlocks: 11, dataCodewordsPerBlock: 45 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 3, dataCodewordsPerBlock: 113 }, { numBlocks: 4, dataCodewordsPerBlock: 114 }] | ||
ecBlocks: [ | ||
{ numBlocks: 3, dataCodewordsPerBlock: 113 }, | ||
{ numBlocks: 4, dataCodewordsPerBlock: 114 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 26, | ||
ecBlocks: [{ numBlocks: 9, dataCodewordsPerBlock: 13 }, { numBlocks: 16, dataCodewordsPerBlock: 14 }] | ||
ecBlocks: [ | ||
{ numBlocks: 9, dataCodewordsPerBlock: 13 }, | ||
{ numBlocks: 16, dataCodewordsPerBlock: 14 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 26, | ||
ecBlocks: [{ numBlocks: 17, dataCodewordsPerBlock: 21 }, { numBlocks: 4, dataCodewordsPerBlock: 22 }] | ||
ecBlocks: [ | ||
{ numBlocks: 17, dataCodewordsPerBlock: 21 }, | ||
{ numBlocks: 4, dataCodewordsPerBlock: 22 } | ||
] | ||
} | ||
@@ -473,15 +617,27 @@ ] | ||
ecCodewordsPerBlock: 26, | ||
ecBlocks: [{ numBlocks: 3, dataCodewordsPerBlock: 41 }, { numBlocks: 13, dataCodewordsPerBlock: 42 }] | ||
ecBlocks: [ | ||
{ numBlocks: 3, dataCodewordsPerBlock: 41 }, | ||
{ numBlocks: 13, dataCodewordsPerBlock: 42 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 3, dataCodewordsPerBlock: 107 }, { numBlocks: 5, dataCodewordsPerBlock: 108 }] | ||
ecBlocks: [ | ||
{ numBlocks: 3, dataCodewordsPerBlock: 107 }, | ||
{ numBlocks: 5, dataCodewordsPerBlock: 108 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 15, dataCodewordsPerBlock: 15 }, { numBlocks: 10, dataCodewordsPerBlock: 16 }] | ||
ecBlocks: [ | ||
{ numBlocks: 15, dataCodewordsPerBlock: 15 }, | ||
{ numBlocks: 10, dataCodewordsPerBlock: 16 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 15, dataCodewordsPerBlock: 24 }, { numBlocks: 5, dataCodewordsPerBlock: 25 }] | ||
ecBlocks: [ | ||
{ numBlocks: 15, dataCodewordsPerBlock: 24 }, | ||
{ numBlocks: 5, dataCodewordsPerBlock: 25 } | ||
] | ||
} | ||
@@ -501,11 +657,20 @@ ] | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 4, dataCodewordsPerBlock: 116 }, { numBlocks: 4, dataCodewordsPerBlock: 117 }] | ||
ecBlocks: [ | ||
{ numBlocks: 4, dataCodewordsPerBlock: 116 }, | ||
{ numBlocks: 4, dataCodewordsPerBlock: 117 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 19, dataCodewordsPerBlock: 16 }, { numBlocks: 6, dataCodewordsPerBlock: 17 }] | ||
ecBlocks: [ | ||
{ numBlocks: 19, dataCodewordsPerBlock: 16 }, | ||
{ numBlocks: 6, dataCodewordsPerBlock: 17 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 17, dataCodewordsPerBlock: 22 }, { numBlocks: 6, dataCodewordsPerBlock: 23 }] | ||
ecBlocks: [ | ||
{ numBlocks: 17, dataCodewordsPerBlock: 22 }, | ||
{ numBlocks: 6, dataCodewordsPerBlock: 23 } | ||
] | ||
} | ||
@@ -525,3 +690,6 @@ ] | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 2, dataCodewordsPerBlock: 111 }, { numBlocks: 7, dataCodewordsPerBlock: 112 }] | ||
ecBlocks: [ | ||
{ numBlocks: 2, dataCodewordsPerBlock: 111 }, | ||
{ numBlocks: 7, dataCodewordsPerBlock: 112 } | ||
] | ||
}, | ||
@@ -534,3 +702,6 @@ { | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 7, dataCodewordsPerBlock: 24 }, { numBlocks: 16, dataCodewordsPerBlock: 25 }] | ||
ecBlocks: [ | ||
{ numBlocks: 7, dataCodewordsPerBlock: 24 }, | ||
{ numBlocks: 16, dataCodewordsPerBlock: 25 } | ||
] | ||
} | ||
@@ -546,15 +717,27 @@ ] | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 4, dataCodewordsPerBlock: 47 }, { numBlocks: 14, dataCodewordsPerBlock: 48 }] | ||
ecBlocks: [ | ||
{ numBlocks: 4, dataCodewordsPerBlock: 47 }, | ||
{ numBlocks: 14, dataCodewordsPerBlock: 48 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 4, dataCodewordsPerBlock: 121 }, { numBlocks: 5, dataCodewordsPerBlock: 122 }] | ||
ecBlocks: [ | ||
{ numBlocks: 4, dataCodewordsPerBlock: 121 }, | ||
{ numBlocks: 5, dataCodewordsPerBlock: 122 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 16, dataCodewordsPerBlock: 15 }, { numBlocks: 14, dataCodewordsPerBlock: 16 }] | ||
ecBlocks: [ | ||
{ numBlocks: 16, dataCodewordsPerBlock: 15 }, | ||
{ numBlocks: 14, dataCodewordsPerBlock: 16 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 11, dataCodewordsPerBlock: 24 }, { numBlocks: 14, dataCodewordsPerBlock: 25 }] | ||
ecBlocks: [ | ||
{ numBlocks: 11, dataCodewordsPerBlock: 24 }, | ||
{ numBlocks: 14, dataCodewordsPerBlock: 25 } | ||
] | ||
} | ||
@@ -570,15 +753,27 @@ ] | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 6, dataCodewordsPerBlock: 45 }, { numBlocks: 14, dataCodewordsPerBlock: 46 }] | ||
ecBlocks: [ | ||
{ numBlocks: 6, dataCodewordsPerBlock: 45 }, | ||
{ numBlocks: 14, dataCodewordsPerBlock: 46 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 6, dataCodewordsPerBlock: 117 }, { numBlocks: 4, dataCodewordsPerBlock: 118 }] | ||
ecBlocks: [ | ||
{ numBlocks: 6, dataCodewordsPerBlock: 117 }, | ||
{ numBlocks: 4, dataCodewordsPerBlock: 118 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 30, dataCodewordsPerBlock: 16 }, { numBlocks: 2, dataCodewordsPerBlock: 17 }] | ||
ecBlocks: [ | ||
{ numBlocks: 30, dataCodewordsPerBlock: 16 }, | ||
{ numBlocks: 2, dataCodewordsPerBlock: 17 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 11, dataCodewordsPerBlock: 24 }, { numBlocks: 16, dataCodewordsPerBlock: 25 }] | ||
ecBlocks: [ | ||
{ numBlocks: 11, dataCodewordsPerBlock: 24 }, | ||
{ numBlocks: 16, dataCodewordsPerBlock: 25 } | ||
] | ||
} | ||
@@ -594,15 +789,27 @@ ] | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 8, dataCodewordsPerBlock: 47 }, { numBlocks: 13, dataCodewordsPerBlock: 48 }] | ||
ecBlocks: [ | ||
{ numBlocks: 8, dataCodewordsPerBlock: 47 }, | ||
{ numBlocks: 13, dataCodewordsPerBlock: 48 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 26, | ||
ecBlocks: [{ numBlocks: 8, dataCodewordsPerBlock: 106 }, { numBlocks: 4, dataCodewordsPerBlock: 107 }] | ||
ecBlocks: [ | ||
{ numBlocks: 8, dataCodewordsPerBlock: 106 }, | ||
{ numBlocks: 4, dataCodewordsPerBlock: 107 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 22, dataCodewordsPerBlock: 15 }, { numBlocks: 13, dataCodewordsPerBlock: 16 }] | ||
ecBlocks: [ | ||
{ numBlocks: 22, dataCodewordsPerBlock: 15 }, | ||
{ numBlocks: 13, dataCodewordsPerBlock: 16 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 7, dataCodewordsPerBlock: 24 }, { numBlocks: 22, dataCodewordsPerBlock: 25 }] | ||
ecBlocks: [ | ||
{ numBlocks: 7, dataCodewordsPerBlock: 24 }, | ||
{ numBlocks: 22, dataCodewordsPerBlock: 25 } | ||
] | ||
} | ||
@@ -618,15 +825,27 @@ ] | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 19, dataCodewordsPerBlock: 46 }, { numBlocks: 4, dataCodewordsPerBlock: 47 }] | ||
ecBlocks: [ | ||
{ numBlocks: 19, dataCodewordsPerBlock: 46 }, | ||
{ numBlocks: 4, dataCodewordsPerBlock: 47 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 10, dataCodewordsPerBlock: 114 }, { numBlocks: 2, dataCodewordsPerBlock: 115 }] | ||
ecBlocks: [ | ||
{ numBlocks: 10, dataCodewordsPerBlock: 114 }, | ||
{ numBlocks: 2, dataCodewordsPerBlock: 115 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 33, dataCodewordsPerBlock: 16 }, { numBlocks: 4, dataCodewordsPerBlock: 17 }] | ||
ecBlocks: [ | ||
{ numBlocks: 33, dataCodewordsPerBlock: 16 }, | ||
{ numBlocks: 4, dataCodewordsPerBlock: 17 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 28, dataCodewordsPerBlock: 22 }, { numBlocks: 6, dataCodewordsPerBlock: 23 }] | ||
ecBlocks: [ | ||
{ numBlocks: 28, dataCodewordsPerBlock: 22 }, | ||
{ numBlocks: 6, dataCodewordsPerBlock: 23 } | ||
] | ||
} | ||
@@ -642,15 +861,27 @@ ] | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 22, dataCodewordsPerBlock: 45 }, { numBlocks: 3, dataCodewordsPerBlock: 46 }] | ||
ecBlocks: [ | ||
{ numBlocks: 22, dataCodewordsPerBlock: 45 }, | ||
{ numBlocks: 3, dataCodewordsPerBlock: 46 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 8, dataCodewordsPerBlock: 122 }, { numBlocks: 4, dataCodewordsPerBlock: 123 }] | ||
ecBlocks: [ | ||
{ numBlocks: 8, dataCodewordsPerBlock: 122 }, | ||
{ numBlocks: 4, dataCodewordsPerBlock: 123 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 12, dataCodewordsPerBlock: 15 }, { numBlocks: 28, dataCodewordsPerBlock: 16 }] | ||
ecBlocks: [ | ||
{ numBlocks: 12, dataCodewordsPerBlock: 15 }, | ||
{ numBlocks: 28, dataCodewordsPerBlock: 16 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 8, dataCodewordsPerBlock: 23 }, { numBlocks: 26, dataCodewordsPerBlock: 24 }] | ||
ecBlocks: [ | ||
{ numBlocks: 8, dataCodewordsPerBlock: 23 }, | ||
{ numBlocks: 26, dataCodewordsPerBlock: 24 } | ||
] | ||
} | ||
@@ -666,15 +897,27 @@ ] | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 3, dataCodewordsPerBlock: 45 }, { numBlocks: 23, dataCodewordsPerBlock: 46 }] | ||
ecBlocks: [ | ||
{ numBlocks: 3, dataCodewordsPerBlock: 45 }, | ||
{ numBlocks: 23, dataCodewordsPerBlock: 46 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 3, dataCodewordsPerBlock: 117 }, { numBlocks: 10, dataCodewordsPerBlock: 118 }] | ||
ecBlocks: [ | ||
{ numBlocks: 3, dataCodewordsPerBlock: 117 }, | ||
{ numBlocks: 10, dataCodewordsPerBlock: 118 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 11, dataCodewordsPerBlock: 15 }, { numBlocks: 31, dataCodewordsPerBlock: 16 }] | ||
ecBlocks: [ | ||
{ numBlocks: 11, dataCodewordsPerBlock: 15 }, | ||
{ numBlocks: 31, dataCodewordsPerBlock: 16 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 4, dataCodewordsPerBlock: 24 }, { numBlocks: 31, dataCodewordsPerBlock: 25 }] | ||
ecBlocks: [ | ||
{ numBlocks: 4, dataCodewordsPerBlock: 24 }, | ||
{ numBlocks: 31, dataCodewordsPerBlock: 25 } | ||
] | ||
} | ||
@@ -690,15 +933,27 @@ ] | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 21, dataCodewordsPerBlock: 45 }, { numBlocks: 7, dataCodewordsPerBlock: 46 }] | ||
ecBlocks: [ | ||
{ numBlocks: 21, dataCodewordsPerBlock: 45 }, | ||
{ numBlocks: 7, dataCodewordsPerBlock: 46 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 7, dataCodewordsPerBlock: 116 }, { numBlocks: 7, dataCodewordsPerBlock: 117 }] | ||
ecBlocks: [ | ||
{ numBlocks: 7, dataCodewordsPerBlock: 116 }, | ||
{ numBlocks: 7, dataCodewordsPerBlock: 117 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 19, dataCodewordsPerBlock: 15 }, { numBlocks: 26, dataCodewordsPerBlock: 16 }] | ||
ecBlocks: [ | ||
{ numBlocks: 19, dataCodewordsPerBlock: 15 }, | ||
{ numBlocks: 26, dataCodewordsPerBlock: 16 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 1, dataCodewordsPerBlock: 23 }, { numBlocks: 37, dataCodewordsPerBlock: 24 }] | ||
ecBlocks: [ | ||
{ numBlocks: 1, dataCodewordsPerBlock: 23 }, | ||
{ numBlocks: 37, dataCodewordsPerBlock: 24 } | ||
] | ||
} | ||
@@ -714,15 +969,27 @@ ] | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 19, dataCodewordsPerBlock: 47 }, { numBlocks: 10, dataCodewordsPerBlock: 48 }] | ||
ecBlocks: [ | ||
{ numBlocks: 19, dataCodewordsPerBlock: 47 }, | ||
{ numBlocks: 10, dataCodewordsPerBlock: 48 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 5, dataCodewordsPerBlock: 115 }, { numBlocks: 10, dataCodewordsPerBlock: 116 }] | ||
ecBlocks: [ | ||
{ numBlocks: 5, dataCodewordsPerBlock: 115 }, | ||
{ numBlocks: 10, dataCodewordsPerBlock: 116 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 23, dataCodewordsPerBlock: 15 }, { numBlocks: 25, dataCodewordsPerBlock: 16 }] | ||
ecBlocks: [ | ||
{ numBlocks: 23, dataCodewordsPerBlock: 15 }, | ||
{ numBlocks: 25, dataCodewordsPerBlock: 16 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 15, dataCodewordsPerBlock: 24 }, { numBlocks: 25, dataCodewordsPerBlock: 25 }] | ||
ecBlocks: [ | ||
{ numBlocks: 15, dataCodewordsPerBlock: 24 }, | ||
{ numBlocks: 25, dataCodewordsPerBlock: 25 } | ||
] | ||
} | ||
@@ -738,15 +1005,27 @@ ] | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 2, dataCodewordsPerBlock: 46 }, { numBlocks: 29, dataCodewordsPerBlock: 47 }] | ||
ecBlocks: [ | ||
{ numBlocks: 2, dataCodewordsPerBlock: 46 }, | ||
{ numBlocks: 29, dataCodewordsPerBlock: 47 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 13, dataCodewordsPerBlock: 115 }, { numBlocks: 3, dataCodewordsPerBlock: 116 }] | ||
ecBlocks: [ | ||
{ numBlocks: 13, dataCodewordsPerBlock: 115 }, | ||
{ numBlocks: 3, dataCodewordsPerBlock: 116 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 23, dataCodewordsPerBlock: 15 }, { numBlocks: 28, dataCodewordsPerBlock: 16 }] | ||
ecBlocks: [ | ||
{ numBlocks: 23, dataCodewordsPerBlock: 15 }, | ||
{ numBlocks: 28, dataCodewordsPerBlock: 16 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 42, dataCodewordsPerBlock: 24 }, { numBlocks: 1, dataCodewordsPerBlock: 25 }] | ||
ecBlocks: [ | ||
{ numBlocks: 42, dataCodewordsPerBlock: 24 }, | ||
{ numBlocks: 1, dataCodewordsPerBlock: 25 } | ||
] | ||
} | ||
@@ -762,3 +1041,6 @@ ] | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 10, dataCodewordsPerBlock: 46 }, { numBlocks: 23, dataCodewordsPerBlock: 47 }] | ||
ecBlocks: [ | ||
{ numBlocks: 10, dataCodewordsPerBlock: 46 }, | ||
{ numBlocks: 23, dataCodewordsPerBlock: 47 } | ||
] | ||
}, | ||
@@ -771,7 +1053,13 @@ { | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 19, dataCodewordsPerBlock: 15 }, { numBlocks: 35, dataCodewordsPerBlock: 16 }] | ||
ecBlocks: [ | ||
{ numBlocks: 19, dataCodewordsPerBlock: 15 }, | ||
{ numBlocks: 35, dataCodewordsPerBlock: 16 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 10, dataCodewordsPerBlock: 24 }, { numBlocks: 35, dataCodewordsPerBlock: 25 }] | ||
ecBlocks: [ | ||
{ numBlocks: 10, dataCodewordsPerBlock: 24 }, | ||
{ numBlocks: 35, dataCodewordsPerBlock: 25 } | ||
] | ||
} | ||
@@ -787,15 +1075,27 @@ ] | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 14, dataCodewordsPerBlock: 46 }, { numBlocks: 21, dataCodewordsPerBlock: 47 }] | ||
ecBlocks: [ | ||
{ numBlocks: 14, dataCodewordsPerBlock: 46 }, | ||
{ numBlocks: 21, dataCodewordsPerBlock: 47 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 17, dataCodewordsPerBlock: 115 }, { numBlocks: 1, dataCodewordsPerBlock: 116 }] | ||
ecBlocks: [ | ||
{ numBlocks: 17, dataCodewordsPerBlock: 115 }, | ||
{ numBlocks: 1, dataCodewordsPerBlock: 116 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 11, dataCodewordsPerBlock: 15 }, { numBlocks: 46, dataCodewordsPerBlock: 16 }] | ||
ecBlocks: [ | ||
{ numBlocks: 11, dataCodewordsPerBlock: 15 }, | ||
{ numBlocks: 46, dataCodewordsPerBlock: 16 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 29, dataCodewordsPerBlock: 24 }, { numBlocks: 19, dataCodewordsPerBlock: 25 }] | ||
ecBlocks: [ | ||
{ numBlocks: 29, dataCodewordsPerBlock: 24 }, | ||
{ numBlocks: 19, dataCodewordsPerBlock: 25 } | ||
] | ||
} | ||
@@ -811,15 +1111,27 @@ ] | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 14, dataCodewordsPerBlock: 46 }, { numBlocks: 23, dataCodewordsPerBlock: 47 }] | ||
ecBlocks: [ | ||
{ numBlocks: 14, dataCodewordsPerBlock: 46 }, | ||
{ numBlocks: 23, dataCodewordsPerBlock: 47 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 13, dataCodewordsPerBlock: 115 }, { numBlocks: 6, dataCodewordsPerBlock: 116 }] | ||
ecBlocks: [ | ||
{ numBlocks: 13, dataCodewordsPerBlock: 115 }, | ||
{ numBlocks: 6, dataCodewordsPerBlock: 116 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 59, dataCodewordsPerBlock: 16 }, { numBlocks: 1, dataCodewordsPerBlock: 17 }] | ||
ecBlocks: [ | ||
{ numBlocks: 59, dataCodewordsPerBlock: 16 }, | ||
{ numBlocks: 1, dataCodewordsPerBlock: 17 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 44, dataCodewordsPerBlock: 24 }, { numBlocks: 7, dataCodewordsPerBlock: 25 }] | ||
ecBlocks: [ | ||
{ numBlocks: 44, dataCodewordsPerBlock: 24 }, | ||
{ numBlocks: 7, dataCodewordsPerBlock: 25 } | ||
] | ||
} | ||
@@ -835,15 +1147,27 @@ ] | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 12, dataCodewordsPerBlock: 47 }, { numBlocks: 26, dataCodewordsPerBlock: 48 }] | ||
ecBlocks: [ | ||
{ numBlocks: 12, dataCodewordsPerBlock: 47 }, | ||
{ numBlocks: 26, dataCodewordsPerBlock: 48 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 12, dataCodewordsPerBlock: 121 }, { numBlocks: 7, dataCodewordsPerBlock: 122 }] | ||
ecBlocks: [ | ||
{ numBlocks: 12, dataCodewordsPerBlock: 121 }, | ||
{ numBlocks: 7, dataCodewordsPerBlock: 122 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 22, dataCodewordsPerBlock: 15 }, { numBlocks: 41, dataCodewordsPerBlock: 16 }] | ||
ecBlocks: [ | ||
{ numBlocks: 22, dataCodewordsPerBlock: 15 }, | ||
{ numBlocks: 41, dataCodewordsPerBlock: 16 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 39, dataCodewordsPerBlock: 24 }, { numBlocks: 14, dataCodewordsPerBlock: 25 }] | ||
ecBlocks: [ | ||
{ numBlocks: 39, dataCodewordsPerBlock: 24 }, | ||
{ numBlocks: 14, dataCodewordsPerBlock: 25 } | ||
] | ||
} | ||
@@ -859,15 +1183,27 @@ ] | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 6, dataCodewordsPerBlock: 47 }, { numBlocks: 34, dataCodewordsPerBlock: 48 }] | ||
ecBlocks: [ | ||
{ numBlocks: 6, dataCodewordsPerBlock: 47 }, | ||
{ numBlocks: 34, dataCodewordsPerBlock: 48 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 6, dataCodewordsPerBlock: 121 }, { numBlocks: 14, dataCodewordsPerBlock: 122 }] | ||
ecBlocks: [ | ||
{ numBlocks: 6, dataCodewordsPerBlock: 121 }, | ||
{ numBlocks: 14, dataCodewordsPerBlock: 122 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 2, dataCodewordsPerBlock: 15 }, { numBlocks: 64, dataCodewordsPerBlock: 16 }] | ||
ecBlocks: [ | ||
{ numBlocks: 2, dataCodewordsPerBlock: 15 }, | ||
{ numBlocks: 64, dataCodewordsPerBlock: 16 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 46, dataCodewordsPerBlock: 24 }, { numBlocks: 10, dataCodewordsPerBlock: 25 }] | ||
ecBlocks: [ | ||
{ numBlocks: 46, dataCodewordsPerBlock: 24 }, | ||
{ numBlocks: 10, dataCodewordsPerBlock: 25 } | ||
] | ||
} | ||
@@ -883,15 +1219,27 @@ ] | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 29, dataCodewordsPerBlock: 46 }, { numBlocks: 14, dataCodewordsPerBlock: 47 }] | ||
ecBlocks: [ | ||
{ numBlocks: 29, dataCodewordsPerBlock: 46 }, | ||
{ numBlocks: 14, dataCodewordsPerBlock: 47 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 17, dataCodewordsPerBlock: 122 }, { numBlocks: 4, dataCodewordsPerBlock: 123 }] | ||
ecBlocks: [ | ||
{ numBlocks: 17, dataCodewordsPerBlock: 122 }, | ||
{ numBlocks: 4, dataCodewordsPerBlock: 123 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 24, dataCodewordsPerBlock: 15 }, { numBlocks: 46, dataCodewordsPerBlock: 16 }] | ||
ecBlocks: [ | ||
{ numBlocks: 24, dataCodewordsPerBlock: 15 }, | ||
{ numBlocks: 46, dataCodewordsPerBlock: 16 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 49, dataCodewordsPerBlock: 24 }, { numBlocks: 10, dataCodewordsPerBlock: 25 }] | ||
ecBlocks: [ | ||
{ numBlocks: 49, dataCodewordsPerBlock: 24 }, | ||
{ numBlocks: 10, dataCodewordsPerBlock: 25 } | ||
] | ||
} | ||
@@ -907,15 +1255,27 @@ ] | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 13, dataCodewordsPerBlock: 46 }, { numBlocks: 32, dataCodewordsPerBlock: 47 }] | ||
ecBlocks: [ | ||
{ numBlocks: 13, dataCodewordsPerBlock: 46 }, | ||
{ numBlocks: 32, dataCodewordsPerBlock: 47 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 4, dataCodewordsPerBlock: 122 }, { numBlocks: 18, dataCodewordsPerBlock: 123 }] | ||
ecBlocks: [ | ||
{ numBlocks: 4, dataCodewordsPerBlock: 122 }, | ||
{ numBlocks: 18, dataCodewordsPerBlock: 123 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 42, dataCodewordsPerBlock: 15 }, { numBlocks: 32, dataCodewordsPerBlock: 16 }] | ||
ecBlocks: [ | ||
{ numBlocks: 42, dataCodewordsPerBlock: 15 }, | ||
{ numBlocks: 32, dataCodewordsPerBlock: 16 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 48, dataCodewordsPerBlock: 24 }, { numBlocks: 14, dataCodewordsPerBlock: 25 }] | ||
ecBlocks: [ | ||
{ numBlocks: 48, dataCodewordsPerBlock: 24 }, | ||
{ numBlocks: 14, dataCodewordsPerBlock: 25 } | ||
] | ||
} | ||
@@ -931,15 +1291,27 @@ ] | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 40, dataCodewordsPerBlock: 47 }, { numBlocks: 7, dataCodewordsPerBlock: 48 }] | ||
ecBlocks: [ | ||
{ numBlocks: 40, dataCodewordsPerBlock: 47 }, | ||
{ numBlocks: 7, dataCodewordsPerBlock: 48 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 20, dataCodewordsPerBlock: 117 }, { numBlocks: 4, dataCodewordsPerBlock: 118 }] | ||
ecBlocks: [ | ||
{ numBlocks: 20, dataCodewordsPerBlock: 117 }, | ||
{ numBlocks: 4, dataCodewordsPerBlock: 118 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 10, dataCodewordsPerBlock: 15 }, { numBlocks: 67, dataCodewordsPerBlock: 16 }] | ||
ecBlocks: [ | ||
{ numBlocks: 10, dataCodewordsPerBlock: 15 }, | ||
{ numBlocks: 67, dataCodewordsPerBlock: 16 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 43, dataCodewordsPerBlock: 24 }, { numBlocks: 22, dataCodewordsPerBlock: 25 }] | ||
ecBlocks: [ | ||
{ numBlocks: 43, dataCodewordsPerBlock: 24 }, | ||
{ numBlocks: 22, dataCodewordsPerBlock: 25 } | ||
] | ||
} | ||
@@ -955,15 +1327,27 @@ ] | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 18, dataCodewordsPerBlock: 47 }, { numBlocks: 31, dataCodewordsPerBlock: 48 }] | ||
ecBlocks: [ | ||
{ numBlocks: 18, dataCodewordsPerBlock: 47 }, | ||
{ numBlocks: 31, dataCodewordsPerBlock: 48 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 19, dataCodewordsPerBlock: 118 }, { numBlocks: 6, dataCodewordsPerBlock: 119 }] | ||
ecBlocks: [ | ||
{ numBlocks: 19, dataCodewordsPerBlock: 118 }, | ||
{ numBlocks: 6, dataCodewordsPerBlock: 119 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 20, dataCodewordsPerBlock: 15 }, { numBlocks: 61, dataCodewordsPerBlock: 16 }] | ||
ecBlocks: [ | ||
{ numBlocks: 20, dataCodewordsPerBlock: 15 }, | ||
{ numBlocks: 61, dataCodewordsPerBlock: 16 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 34, dataCodewordsPerBlock: 24 }, { numBlocks: 34, dataCodewordsPerBlock: 25 }] | ||
ecBlocks: [ | ||
{ numBlocks: 34, dataCodewordsPerBlock: 24 }, | ||
{ numBlocks: 34, dataCodewordsPerBlock: 25 } | ||
] | ||
} | ||
@@ -970,0 +1354,0 @@ ] |
@@ -123,11 +123,11 @@ /** | ||
* @function SJIS | ||
* @param {string} str | ||
* @param {string} text | ||
* @returns {number[]} | ||
*/ | ||
function SJIS(str) { | ||
function SJIS(text) { | ||
var bytes = []; | ||
var length = str.length; | ||
var length = text.length; | ||
var UTF8_TO_SJIS = getTables().UTF8_TO_SJIS; | ||
for (var i = 0; i < length; i++) { | ||
var code = str.charCodeAt(i); | ||
var code = text.charCodeAt(i); | ||
var byte = UTF8_TO_SJIS[code]; | ||
@@ -134,0 +134,0 @@ if (byte != null) { |
@@ -5,7 +5,12 @@ /** | ||
*/ | ||
function UTF16(str) { | ||
/** | ||
* @function UTF16 | ||
* @param {string} text | ||
* @returns {number[]} | ||
*/ | ||
function UTF16(text) { | ||
var bytes = []; | ||
var length = str.length; | ||
var length = text.length; | ||
for (var i = 0; i < length; i++) { | ||
bytes.push(str.charCodeAt(i)); | ||
bytes.push(text.charCodeAt(i)); | ||
} | ||
@@ -12,0 +17,0 @@ return bytes; |
@@ -7,12 +7,12 @@ /** | ||
* @function UTF8 | ||
* @param {string} str | ||
* @param {string} text | ||
* @returns {number[]} | ||
* @see https://github.com/google/closure-library/blob/master/closure/goog/crypt/crypt.js | ||
*/ | ||
function UTF8(str) { | ||
function UTF8(text) { | ||
var bytes = []; | ||
var length = text.length; | ||
var pos = 0; | ||
var bytes = []; | ||
var length = str.length; | ||
for (var i = 0; i < length; i++) { | ||
var code = str.charCodeAt(i); | ||
var code = text.charCodeAt(i); | ||
if (code < 128) { | ||
@@ -25,5 +25,5 @@ bytes[pos++] = code; | ||
} | ||
else if ((code & 0xfc00) === 0xd800 && i + 1 < length && (str.charCodeAt(i + 1) & 0xfc00) === 0xdc00) { | ||
else if ((code & 0xfc00) === 0xd800 && i + 1 < length && (text.charCodeAt(i + 1) & 0xfc00) === 0xdc00) { | ||
// Surrogate Pair | ||
code = 0x10000 + ((code & 0x03ff) << 10) + (str.charCodeAt(++i) & 0x03ff); | ||
code = 0x10000 + ((code & 0x03ff) << 10) + (text.charCodeAt(++i) & 0x03ff); | ||
bytes[pos++] = (code >> 18) | 240; | ||
@@ -30,0 +30,0 @@ bytes[pos++] = ((code >> 12) & 63) | 128; |
@@ -1,3 +0,3 @@ | ||
import { ByteArrayOutputStream } from '../io/ByteArrayOutputStream.js'; | ||
import { Base64EncodeOutputStream } from '../io/Base64EncodeOutputStream.js'; | ||
import { ByteArrayOutputStream as ByteArrayOutputStream$1 } from '../io/ByteArrayOutputStream.js'; | ||
import { Base64EncodeOutputStream as Base64EncodeOutputStream$1 } from '../io/Base64EncodeOutputStream.js'; | ||
@@ -10,4 +10,4 @@ /** | ||
function encodeToBase64(data) { | ||
var output = new ByteArrayOutputStream(); | ||
var stream = new Base64EncodeOutputStream(output); | ||
var output = new ByteArrayOutputStream$1(); | ||
var stream = new Base64EncodeOutputStream$1(output); | ||
try { | ||
@@ -94,3 +94,3 @@ stream.writeBytes(data); | ||
table.add(String.fromCharCode(endCode)); | ||
var byteOutput = new ByteArrayOutputStream(); | ||
var byteOutput = new ByteArrayOutputStream$1(); | ||
var bitOutput = new BitOutputStream(byteOutput); | ||
@@ -202,3 +202,3 @@ var bitLength = lzwMinCodeSize + 1; | ||
GIFImage.prototype.toDataURL = function () { | ||
var output = new ByteArrayOutputStream(); | ||
var output = new ByteArrayOutputStream$1(); | ||
this.write(output); | ||
@@ -205,0 +205,0 @@ var bytes = encodeToBase64(output.toByteArray()); |
import { __extends } from 'tslib'; | ||
import { OutputStream } from './OutputStream.js'; | ||
import { OutputStream as OutputStream$1 } from './OutputStream.js'; | ||
@@ -75,4 +75,4 @@ /** | ||
return Base64EncodeOutputStream; | ||
}(OutputStream)); | ||
}(OutputStream$1)); | ||
export { Base64EncodeOutputStream }; |
import { __extends } from 'tslib'; | ||
import { OutputStream } from './OutputStream.js'; | ||
import { OutputStream as OutputStream$1 } from './OutputStream.js'; | ||
@@ -23,4 +23,4 @@ /** | ||
return ByteArrayOutputStream; | ||
}(OutputStream)); | ||
}(OutputStream$1)); | ||
export { ByteArrayOutputStream }; |
@@ -9,3 +9,2 @@ /** | ||
* @readonly | ||
* @enum {L, M, Q, H} | ||
*/ | ||
@@ -12,0 +11,0 @@ var ErrorCorrectionLevel; |
@@ -7,2 +7,5 @@ /** | ||
*/ | ||
/** | ||
* @readonly | ||
*/ | ||
var Mode; | ||
@@ -9,0 +12,0 @@ (function (Mode) { |
@@ -1,2 +0,2 @@ | ||
import { BitMatrix } from './BitMatrix.js'; | ||
import { BitMatrix as BitMatrix$1 } from './BitMatrix.js'; | ||
@@ -108,6 +108,6 @@ /** | ||
bufferOffset += pixelCount; | ||
binarized = new BitMatrix(binarizedBuffer, width); | ||
binarized = new BitMatrix$1(binarizedBuffer, width); | ||
} | ||
else { | ||
binarized = BitMatrix.createEmpty(width, height); | ||
binarized = BitMatrix$1.createEmpty(width, height); | ||
} | ||
@@ -118,6 +118,6 @@ var inverted = null; | ||
var invertedBuffer = new Uint8ClampedArray(data.buffer, bufferOffset, pixelCount); | ||
inverted = new BitMatrix(invertedBuffer, width); | ||
inverted = new BitMatrix$1(invertedBuffer, width); | ||
} | ||
else { | ||
inverted = BitMatrix.createEmpty(width, height); | ||
inverted = BitMatrix$1.createEmpty(width, height); | ||
} | ||
@@ -124,0 +124,0 @@ } |
@@ -1,4 +0,4 @@ | ||
import { Mode } from '../../../common/Mode.js'; | ||
import { Mode as Mode$1 } from '../../../common/Mode.js'; | ||
import { __assign } from 'tslib'; | ||
import { BitStream } from './BitStream.js'; | ||
import { BitStream as BitStream$1 } from './BitStream.js'; | ||
import { getTables } from '../../../../encoding/SJIS.js'; | ||
@@ -178,3 +178,3 @@ | ||
var encoding = 26 /* UTF8 */; | ||
var stream = new BitStream(data); | ||
var stream = new BitStream$1(data); | ||
// There are 3 'sizes' based on the version. 1-9 is small (0), 10-26 is medium (1) and 27-40 is large (2). | ||
@@ -185,28 +185,28 @@ var size = version <= 9 ? 0 : version <= 26 ? 1 : 2; | ||
var mode = stream.readBits(4); | ||
if (mode === Mode.Terminator) { | ||
if (mode === Mode$1.Terminator) { | ||
return result; | ||
} | ||
else if (mode === Mode.ECI) { | ||
else if (mode === Mode$1.ECI) { | ||
if (stream.readBits(1) === 0) { | ||
encoding = stream.readBits(7); | ||
result.chunks.push({ mode: Mode.ECI, encoding: encoding }); | ||
result.chunks.push({ mode: Mode$1.ECI, encoding: encoding }); | ||
} | ||
else if (stream.readBits(1) === 0) { | ||
encoding = stream.readBits(14); | ||
result.chunks.push({ mode: Mode.ECI, encoding: encoding }); | ||
result.chunks.push({ mode: Mode$1.ECI, encoding: encoding }); | ||
} | ||
else if (stream.readBits(1) === 0) { | ||
encoding = stream.readBits(21); | ||
result.chunks.push({ mode: Mode.ECI, encoding: encoding }); | ||
result.chunks.push({ mode: Mode$1.ECI, encoding: encoding }); | ||
} | ||
else { | ||
// ECI data seems corrupted | ||
result.chunks.push({ mode: Mode.ECI, encoding: -1 }); | ||
result.chunks.push({ mode: Mode$1.ECI, encoding: -1 }); | ||
} | ||
} | ||
else if (mode === Mode.Numeric) { | ||
else if (mode === Mode$1.Numeric) { | ||
var numericResult = decodeNumeric(stream, size); | ||
result.data += numericResult.data; | ||
result.chunks.push({ | ||
mode: Mode.Numeric, | ||
mode: Mode$1.Numeric, | ||
data: numericResult.data, | ||
@@ -217,7 +217,7 @@ bytes: numericResult.bytes | ||
} | ||
else if (mode === Mode.Alphanumeric) { | ||
else if (mode === Mode$1.Alphanumeric) { | ||
var alphanumericResult = decodeAlphanumeric(stream, size); | ||
result.data += alphanumericResult.data; | ||
result.chunks.push({ | ||
mode: Mode.Alphanumeric, | ||
mode: Mode$1.Alphanumeric, | ||
data: alphanumericResult.data, | ||
@@ -228,3 +228,3 @@ bytes: alphanumericResult.bytes | ||
} | ||
else if (mode === Mode.StructuredAppend) { | ||
else if (mode === Mode$1.StructuredAppend) { | ||
// QR Standard section 9.2 | ||
@@ -236,9 +236,9 @@ var structuredAppend = { | ||
}; | ||
result.chunks.push(__assign({ mode: Mode.StructuredAppend }, structuredAppend)); | ||
result.chunks.push(__assign({ mode: Mode$1.StructuredAppend }, structuredAppend)); | ||
} | ||
else if (mode === Mode.Byte) { | ||
else if (mode === Mode$1.Byte) { | ||
var byteResult = decodeByte(stream, size, encoding); | ||
result.data += byteResult.data; | ||
result.chunks.push({ | ||
mode: Mode.Byte, | ||
mode: Mode$1.Byte, | ||
data: byteResult.data, | ||
@@ -249,7 +249,7 @@ bytes: byteResult.bytes | ||
} | ||
else if (mode === Mode.Kanji) { | ||
else if (mode === Mode$1.Kanji) { | ||
var kanjiResult = decodeKanji(stream, size); | ||
result.data += kanjiResult.data; | ||
result.chunks.push({ | ||
mode: Mode.Kanji, | ||
mode: Mode$1.Kanji, | ||
data: kanjiResult.data, | ||
@@ -256,0 +256,0 @@ bytes: kanjiResult.bytes |
import { getMaskFunc } from '../../common/MaskPattern.js'; | ||
import { rsDecode } from './reedsolomon/index.js'; | ||
import { BitMatrix } from '../BitMatrix.js'; | ||
import { BitMatrix as BitMatrix$1 } from '../BitMatrix.js'; | ||
import { bytesDecode } from './decode/index.js'; | ||
@@ -60,3 +60,3 @@ import { VERSIONS } from './version.js'; | ||
var dimension = 17 + 4 * version.versionNumber; | ||
var matrix = BitMatrix.createEmpty(dimension, dimension); | ||
var matrix = BitMatrix$1.createEmpty(dimension, dimension); | ||
matrix.setRegion(0, 0, 9, 9, true); // Top left finder pattern + separator + format | ||
@@ -63,0 +63,0 @@ matrix.setRegion(dimension - 8, 0, 8, 9, true); // Top right finder pattern + separator + format |
@@ -1,2 +0,2 @@ | ||
import { GenericGFPoly } from './GenericGFPoly.js'; | ||
import { GenericGFPoly as GenericGFPoly$1 } from './GenericGFPoly.js'; | ||
@@ -30,4 +30,4 @@ /** | ||
} | ||
this.zero = new GenericGFPoly(this, Uint8ClampedArray.from([0])); | ||
this.one = new GenericGFPoly(this, Uint8ClampedArray.from([1])); | ||
this.zero = new GenericGFPoly$1(this, Uint8ClampedArray.from([0])); | ||
this.one = new GenericGFPoly$1(this, Uint8ClampedArray.from([1])); | ||
} | ||
@@ -55,3 +55,3 @@ GenericGF.prototype.multiply = function (a, b) { | ||
coefficients[0] = coefficient; | ||
return new GenericGFPoly(this, coefficients); | ||
return new GenericGFPoly$1(this, coefficients); | ||
}; | ||
@@ -58,0 +58,0 @@ GenericGF.prototype.log = function (a) { |
@@ -1,3 +0,3 @@ | ||
import { GenericGF, addOrSubtractGF } from './GenericGF.js'; | ||
import { GenericGFPoly } from './GenericGFPoly.js'; | ||
import { GenericGF as GenericGF$1, addOrSubtractGF } from './GenericGF.js'; | ||
import { GenericGFPoly as GenericGFPoly$1 } from './GenericGFPoly.js'; | ||
@@ -93,4 +93,4 @@ /** | ||
outputBytes.set(bytes); | ||
var field = new GenericGF(0x011d, 256, 0); // x^8 + x^4 + x^3 + x^2 + 1 | ||
var poly = new GenericGFPoly(field, outputBytes); | ||
var field = new GenericGF$1(0x011d, 256, 0); // x^8 + x^4 + x^3 + x^2 + 1 | ||
var poly = new GenericGFPoly$1(field, outputBytes); | ||
var syndromeCoefficients = new Uint8ClampedArray(twoS); | ||
@@ -108,3 +108,3 @@ var error = false; | ||
} | ||
var syndrome = new GenericGFPoly(field, syndromeCoefficients); | ||
var syndrome = new GenericGFPoly$1(field, syndromeCoefficients); | ||
var sigmaOmega = runEuclideanAlgorithm(field, field.buildMonomial(twoS, 1), syndrome, twoS); | ||
@@ -111,0 +111,0 @@ if (sigmaOmega === null) { |
@@ -114,7 +114,13 @@ /** | ||
ecCodewordsPerBlock: 22, | ||
ecBlocks: [{ numBlocks: 2, dataCodewordsPerBlock: 11 }, { numBlocks: 2, dataCodewordsPerBlock: 12 }] | ||
ecBlocks: [ | ||
{ numBlocks: 2, dataCodewordsPerBlock: 11 }, | ||
{ numBlocks: 2, dataCodewordsPerBlock: 12 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 18, | ||
ecBlocks: [{ numBlocks: 2, dataCodewordsPerBlock: 15 }, { numBlocks: 2, dataCodewordsPerBlock: 16 }] | ||
ecBlocks: [ | ||
{ numBlocks: 2, dataCodewordsPerBlock: 15 }, | ||
{ numBlocks: 2, dataCodewordsPerBlock: 16 } | ||
] | ||
} | ||
@@ -161,7 +167,13 @@ ] | ||
ecCodewordsPerBlock: 26, | ||
ecBlocks: [{ numBlocks: 4, dataCodewordsPerBlock: 13 }, { numBlocks: 1, dataCodewordsPerBlock: 14 }] | ||
ecBlocks: [ | ||
{ numBlocks: 4, dataCodewordsPerBlock: 13 }, | ||
{ numBlocks: 1, dataCodewordsPerBlock: 14 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 18, | ||
ecBlocks: [{ numBlocks: 2, dataCodewordsPerBlock: 14 }, { numBlocks: 4, dataCodewordsPerBlock: 15 }] | ||
ecBlocks: [ | ||
{ numBlocks: 2, dataCodewordsPerBlock: 14 }, | ||
{ numBlocks: 4, dataCodewordsPerBlock: 15 } | ||
] | ||
} | ||
@@ -177,3 +189,6 @@ ] | ||
ecCodewordsPerBlock: 22, | ||
ecBlocks: [{ numBlocks: 2, dataCodewordsPerBlock: 38 }, { numBlocks: 2, dataCodewordsPerBlock: 39 }] | ||
ecBlocks: [ | ||
{ numBlocks: 2, dataCodewordsPerBlock: 38 }, | ||
{ numBlocks: 2, dataCodewordsPerBlock: 39 } | ||
] | ||
}, | ||
@@ -186,7 +201,13 @@ { | ||
ecCodewordsPerBlock: 26, | ||
ecBlocks: [{ numBlocks: 4, dataCodewordsPerBlock: 14 }, { numBlocks: 2, dataCodewordsPerBlock: 15 }] | ||
ecBlocks: [ | ||
{ numBlocks: 4, dataCodewordsPerBlock: 14 }, | ||
{ numBlocks: 2, dataCodewordsPerBlock: 15 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 22, | ||
ecBlocks: [{ numBlocks: 4, dataCodewordsPerBlock: 18 }, { numBlocks: 2, dataCodewordsPerBlock: 19 }] | ||
ecBlocks: [ | ||
{ numBlocks: 4, dataCodewordsPerBlock: 18 }, | ||
{ numBlocks: 2, dataCodewordsPerBlock: 19 } | ||
] | ||
} | ||
@@ -202,3 +223,6 @@ ] | ||
ecCodewordsPerBlock: 22, | ||
ecBlocks: [{ numBlocks: 3, dataCodewordsPerBlock: 36 }, { numBlocks: 2, dataCodewordsPerBlock: 37 }] | ||
ecBlocks: [ | ||
{ numBlocks: 3, dataCodewordsPerBlock: 36 }, | ||
{ numBlocks: 2, dataCodewordsPerBlock: 37 } | ||
] | ||
}, | ||
@@ -211,7 +235,13 @@ { | ||
ecCodewordsPerBlock: 24, | ||
ecBlocks: [{ numBlocks: 4, dataCodewordsPerBlock: 12 }, { numBlocks: 4, dataCodewordsPerBlock: 13 }] | ||
ecBlocks: [ | ||
{ numBlocks: 4, dataCodewordsPerBlock: 12 }, | ||
{ numBlocks: 4, dataCodewordsPerBlock: 13 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 20, | ||
ecBlocks: [{ numBlocks: 4, dataCodewordsPerBlock: 16 }, { numBlocks: 4, dataCodewordsPerBlock: 17 }] | ||
ecBlocks: [ | ||
{ numBlocks: 4, dataCodewordsPerBlock: 16 }, | ||
{ numBlocks: 4, dataCodewordsPerBlock: 17 } | ||
] | ||
} | ||
@@ -227,15 +257,27 @@ ] | ||
ecCodewordsPerBlock: 26, | ||
ecBlocks: [{ numBlocks: 4, dataCodewordsPerBlock: 43 }, { numBlocks: 1, dataCodewordsPerBlock: 44 }] | ||
ecBlocks: [ | ||
{ numBlocks: 4, dataCodewordsPerBlock: 43 }, | ||
{ numBlocks: 1, dataCodewordsPerBlock: 44 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 18, | ||
ecBlocks: [{ numBlocks: 2, dataCodewordsPerBlock: 68 }, { numBlocks: 2, dataCodewordsPerBlock: 69 }] | ||
ecBlocks: [ | ||
{ numBlocks: 2, dataCodewordsPerBlock: 68 }, | ||
{ numBlocks: 2, dataCodewordsPerBlock: 69 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 6, dataCodewordsPerBlock: 15 }, { numBlocks: 2, dataCodewordsPerBlock: 16 }] | ||
ecBlocks: [ | ||
{ numBlocks: 6, dataCodewordsPerBlock: 15 }, | ||
{ numBlocks: 2, dataCodewordsPerBlock: 16 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 24, | ||
ecBlocks: [{ numBlocks: 6, dataCodewordsPerBlock: 19 }, { numBlocks: 2, dataCodewordsPerBlock: 20 }] | ||
ecBlocks: [ | ||
{ numBlocks: 6, dataCodewordsPerBlock: 19 }, | ||
{ numBlocks: 2, dataCodewordsPerBlock: 20 } | ||
] | ||
} | ||
@@ -251,3 +293,6 @@ ] | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 1, dataCodewordsPerBlock: 50 }, { numBlocks: 4, dataCodewordsPerBlock: 51 }] | ||
ecBlocks: [ | ||
{ numBlocks: 1, dataCodewordsPerBlock: 50 }, | ||
{ numBlocks: 4, dataCodewordsPerBlock: 51 } | ||
] | ||
}, | ||
@@ -260,7 +305,13 @@ { | ||
ecCodewordsPerBlock: 24, | ||
ecBlocks: [{ numBlocks: 3, dataCodewordsPerBlock: 12 }, { numBlocks: 8, dataCodewordsPerBlock: 13 }] | ||
ecBlocks: [ | ||
{ numBlocks: 3, dataCodewordsPerBlock: 12 }, | ||
{ numBlocks: 8, dataCodewordsPerBlock: 13 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 4, dataCodewordsPerBlock: 22 }, { numBlocks: 4, dataCodewordsPerBlock: 23 }] | ||
ecBlocks: [ | ||
{ numBlocks: 4, dataCodewordsPerBlock: 22 }, | ||
{ numBlocks: 4, dataCodewordsPerBlock: 23 } | ||
] | ||
} | ||
@@ -276,15 +327,27 @@ ] | ||
ecCodewordsPerBlock: 22, | ||
ecBlocks: [{ numBlocks: 6, dataCodewordsPerBlock: 36 }, { numBlocks: 2, dataCodewordsPerBlock: 37 }] | ||
ecBlocks: [ | ||
{ numBlocks: 6, dataCodewordsPerBlock: 36 }, | ||
{ numBlocks: 2, dataCodewordsPerBlock: 37 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 24, | ||
ecBlocks: [{ numBlocks: 2, dataCodewordsPerBlock: 92 }, { numBlocks: 2, dataCodewordsPerBlock: 93 }] | ||
ecBlocks: [ | ||
{ numBlocks: 2, dataCodewordsPerBlock: 92 }, | ||
{ numBlocks: 2, dataCodewordsPerBlock: 93 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 7, dataCodewordsPerBlock: 14 }, { numBlocks: 4, dataCodewordsPerBlock: 15 }] | ||
ecBlocks: [ | ||
{ numBlocks: 7, dataCodewordsPerBlock: 14 }, | ||
{ numBlocks: 4, dataCodewordsPerBlock: 15 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 26, | ||
ecBlocks: [{ numBlocks: 4, dataCodewordsPerBlock: 20 }, { numBlocks: 6, dataCodewordsPerBlock: 21 }] | ||
ecBlocks: [ | ||
{ numBlocks: 4, dataCodewordsPerBlock: 20 }, | ||
{ numBlocks: 6, dataCodewordsPerBlock: 21 } | ||
] | ||
} | ||
@@ -300,3 +363,6 @@ ] | ||
ecCodewordsPerBlock: 22, | ||
ecBlocks: [{ numBlocks: 8, dataCodewordsPerBlock: 37 }, { numBlocks: 1, dataCodewordsPerBlock: 38 }] | ||
ecBlocks: [ | ||
{ numBlocks: 8, dataCodewordsPerBlock: 37 }, | ||
{ numBlocks: 1, dataCodewordsPerBlock: 38 } | ||
] | ||
}, | ||
@@ -309,7 +375,13 @@ { | ||
ecCodewordsPerBlock: 22, | ||
ecBlocks: [{ numBlocks: 12, dataCodewordsPerBlock: 11 }, { numBlocks: 4, dataCodewordsPerBlock: 12 }] | ||
ecBlocks: [ | ||
{ numBlocks: 12, dataCodewordsPerBlock: 11 }, | ||
{ numBlocks: 4, dataCodewordsPerBlock: 12 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 24, | ||
ecBlocks: [{ numBlocks: 8, dataCodewordsPerBlock: 20 }, { numBlocks: 4, dataCodewordsPerBlock: 21 }] | ||
ecBlocks: [ | ||
{ numBlocks: 8, dataCodewordsPerBlock: 20 }, | ||
{ numBlocks: 4, dataCodewordsPerBlock: 21 } | ||
] | ||
} | ||
@@ -325,15 +397,27 @@ ] | ||
ecCodewordsPerBlock: 24, | ||
ecBlocks: [{ numBlocks: 4, dataCodewordsPerBlock: 40 }, { numBlocks: 5, dataCodewordsPerBlock: 41 }] | ||
ecBlocks: [ | ||
{ numBlocks: 4, dataCodewordsPerBlock: 40 }, | ||
{ numBlocks: 5, dataCodewordsPerBlock: 41 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 3, dataCodewordsPerBlock: 115 }, { numBlocks: 1, dataCodewordsPerBlock: 116 }] | ||
ecBlocks: [ | ||
{ numBlocks: 3, dataCodewordsPerBlock: 115 }, | ||
{ numBlocks: 1, dataCodewordsPerBlock: 116 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 24, | ||
ecBlocks: [{ numBlocks: 11, dataCodewordsPerBlock: 12 }, { numBlocks: 5, dataCodewordsPerBlock: 13 }] | ||
ecBlocks: [ | ||
{ numBlocks: 11, dataCodewordsPerBlock: 12 }, | ||
{ numBlocks: 5, dataCodewordsPerBlock: 13 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 20, | ||
ecBlocks: [{ numBlocks: 11, dataCodewordsPerBlock: 16 }, { numBlocks: 5, dataCodewordsPerBlock: 17 }] | ||
ecBlocks: [ | ||
{ numBlocks: 11, dataCodewordsPerBlock: 16 }, | ||
{ numBlocks: 5, dataCodewordsPerBlock: 17 } | ||
] | ||
} | ||
@@ -349,15 +433,27 @@ ] | ||
ecCodewordsPerBlock: 24, | ||
ecBlocks: [{ numBlocks: 5, dataCodewordsPerBlock: 41 }, { numBlocks: 5, dataCodewordsPerBlock: 42 }] | ||
ecBlocks: [ | ||
{ numBlocks: 5, dataCodewordsPerBlock: 41 }, | ||
{ numBlocks: 5, dataCodewordsPerBlock: 42 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 22, | ||
ecBlocks: [{ numBlocks: 5, dataCodewordsPerBlock: 87 }, { numBlocks: 1, dataCodewordsPerBlock: 88 }] | ||
ecBlocks: [ | ||
{ numBlocks: 5, dataCodewordsPerBlock: 87 }, | ||
{ numBlocks: 1, dataCodewordsPerBlock: 88 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 24, | ||
ecBlocks: [{ numBlocks: 11, dataCodewordsPerBlock: 12 }, { numBlocks: 7, dataCodewordsPerBlock: 13 }] | ||
ecBlocks: [ | ||
{ numBlocks: 11, dataCodewordsPerBlock: 12 }, | ||
{ numBlocks: 7, dataCodewordsPerBlock: 13 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 5, dataCodewordsPerBlock: 24 }, { numBlocks: 7, dataCodewordsPerBlock: 25 }] | ||
ecBlocks: [ | ||
{ numBlocks: 5, dataCodewordsPerBlock: 24 }, | ||
{ numBlocks: 7, dataCodewordsPerBlock: 25 } | ||
] | ||
} | ||
@@ -373,15 +469,27 @@ ] | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 7, dataCodewordsPerBlock: 45 }, { numBlocks: 3, dataCodewordsPerBlock: 46 }] | ||
ecBlocks: [ | ||
{ numBlocks: 7, dataCodewordsPerBlock: 45 }, | ||
{ numBlocks: 3, dataCodewordsPerBlock: 46 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 24, | ||
ecBlocks: [{ numBlocks: 5, dataCodewordsPerBlock: 98 }, { numBlocks: 1, dataCodewordsPerBlock: 99 }] | ||
ecBlocks: [ | ||
{ numBlocks: 5, dataCodewordsPerBlock: 98 }, | ||
{ numBlocks: 1, dataCodewordsPerBlock: 99 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 3, dataCodewordsPerBlock: 15 }, { numBlocks: 13, dataCodewordsPerBlock: 16 }] | ||
ecBlocks: [ | ||
{ numBlocks: 3, dataCodewordsPerBlock: 15 }, | ||
{ numBlocks: 13, dataCodewordsPerBlock: 16 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 24, | ||
ecBlocks: [{ numBlocks: 15, dataCodewordsPerBlock: 19 }, { numBlocks: 2, dataCodewordsPerBlock: 20 }] | ||
ecBlocks: [ | ||
{ numBlocks: 15, dataCodewordsPerBlock: 19 }, | ||
{ numBlocks: 2, dataCodewordsPerBlock: 20 } | ||
] | ||
} | ||
@@ -397,15 +505,27 @@ ] | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 10, dataCodewordsPerBlock: 46 }, { numBlocks: 1, dataCodewordsPerBlock: 47 }] | ||
ecBlocks: [ | ||
{ numBlocks: 10, dataCodewordsPerBlock: 46 }, | ||
{ numBlocks: 1, dataCodewordsPerBlock: 47 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 1, dataCodewordsPerBlock: 107 }, { numBlocks: 5, dataCodewordsPerBlock: 108 }] | ||
ecBlocks: [ | ||
{ numBlocks: 1, dataCodewordsPerBlock: 107 }, | ||
{ numBlocks: 5, dataCodewordsPerBlock: 108 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 2, dataCodewordsPerBlock: 14 }, { numBlocks: 17, dataCodewordsPerBlock: 15 }] | ||
ecBlocks: [ | ||
{ numBlocks: 2, dataCodewordsPerBlock: 14 }, | ||
{ numBlocks: 17, dataCodewordsPerBlock: 15 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 1, dataCodewordsPerBlock: 22 }, { numBlocks: 15, dataCodewordsPerBlock: 23 }] | ||
ecBlocks: [ | ||
{ numBlocks: 1, dataCodewordsPerBlock: 22 }, | ||
{ numBlocks: 15, dataCodewordsPerBlock: 23 } | ||
] | ||
} | ||
@@ -421,15 +541,27 @@ ] | ||
ecCodewordsPerBlock: 26, | ||
ecBlocks: [{ numBlocks: 9, dataCodewordsPerBlock: 43 }, { numBlocks: 4, dataCodewordsPerBlock: 44 }] | ||
ecBlocks: [ | ||
{ numBlocks: 9, dataCodewordsPerBlock: 43 }, | ||
{ numBlocks: 4, dataCodewordsPerBlock: 44 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 5, dataCodewordsPerBlock: 120 }, { numBlocks: 1, dataCodewordsPerBlock: 121 }] | ||
ecBlocks: [ | ||
{ numBlocks: 5, dataCodewordsPerBlock: 120 }, | ||
{ numBlocks: 1, dataCodewordsPerBlock: 121 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 2, dataCodewordsPerBlock: 14 }, { numBlocks: 19, dataCodewordsPerBlock: 15 }] | ||
ecBlocks: [ | ||
{ numBlocks: 2, dataCodewordsPerBlock: 14 }, | ||
{ numBlocks: 19, dataCodewordsPerBlock: 15 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 17, dataCodewordsPerBlock: 22 }, { numBlocks: 1, dataCodewordsPerBlock: 23 }] | ||
ecBlocks: [ | ||
{ numBlocks: 17, dataCodewordsPerBlock: 22 }, | ||
{ numBlocks: 1, dataCodewordsPerBlock: 23 } | ||
] | ||
} | ||
@@ -445,15 +577,27 @@ ] | ||
ecCodewordsPerBlock: 26, | ||
ecBlocks: [{ numBlocks: 3, dataCodewordsPerBlock: 44 }, { numBlocks: 11, dataCodewordsPerBlock: 45 }] | ||
ecBlocks: [ | ||
{ numBlocks: 3, dataCodewordsPerBlock: 44 }, | ||
{ numBlocks: 11, dataCodewordsPerBlock: 45 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 3, dataCodewordsPerBlock: 113 }, { numBlocks: 4, dataCodewordsPerBlock: 114 }] | ||
ecBlocks: [ | ||
{ numBlocks: 3, dataCodewordsPerBlock: 113 }, | ||
{ numBlocks: 4, dataCodewordsPerBlock: 114 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 26, | ||
ecBlocks: [{ numBlocks: 9, dataCodewordsPerBlock: 13 }, { numBlocks: 16, dataCodewordsPerBlock: 14 }] | ||
ecBlocks: [ | ||
{ numBlocks: 9, dataCodewordsPerBlock: 13 }, | ||
{ numBlocks: 16, dataCodewordsPerBlock: 14 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 26, | ||
ecBlocks: [{ numBlocks: 17, dataCodewordsPerBlock: 21 }, { numBlocks: 4, dataCodewordsPerBlock: 22 }] | ||
ecBlocks: [ | ||
{ numBlocks: 17, dataCodewordsPerBlock: 21 }, | ||
{ numBlocks: 4, dataCodewordsPerBlock: 22 } | ||
] | ||
} | ||
@@ -469,15 +613,27 @@ ] | ||
ecCodewordsPerBlock: 26, | ||
ecBlocks: [{ numBlocks: 3, dataCodewordsPerBlock: 41 }, { numBlocks: 13, dataCodewordsPerBlock: 42 }] | ||
ecBlocks: [ | ||
{ numBlocks: 3, dataCodewordsPerBlock: 41 }, | ||
{ numBlocks: 13, dataCodewordsPerBlock: 42 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 3, dataCodewordsPerBlock: 107 }, { numBlocks: 5, dataCodewordsPerBlock: 108 }] | ||
ecBlocks: [ | ||
{ numBlocks: 3, dataCodewordsPerBlock: 107 }, | ||
{ numBlocks: 5, dataCodewordsPerBlock: 108 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 15, dataCodewordsPerBlock: 15 }, { numBlocks: 10, dataCodewordsPerBlock: 16 }] | ||
ecBlocks: [ | ||
{ numBlocks: 15, dataCodewordsPerBlock: 15 }, | ||
{ numBlocks: 10, dataCodewordsPerBlock: 16 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 15, dataCodewordsPerBlock: 24 }, { numBlocks: 5, dataCodewordsPerBlock: 25 }] | ||
ecBlocks: [ | ||
{ numBlocks: 15, dataCodewordsPerBlock: 24 }, | ||
{ numBlocks: 5, dataCodewordsPerBlock: 25 } | ||
] | ||
} | ||
@@ -497,11 +653,20 @@ ] | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 4, dataCodewordsPerBlock: 116 }, { numBlocks: 4, dataCodewordsPerBlock: 117 }] | ||
ecBlocks: [ | ||
{ numBlocks: 4, dataCodewordsPerBlock: 116 }, | ||
{ numBlocks: 4, dataCodewordsPerBlock: 117 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 19, dataCodewordsPerBlock: 16 }, { numBlocks: 6, dataCodewordsPerBlock: 17 }] | ||
ecBlocks: [ | ||
{ numBlocks: 19, dataCodewordsPerBlock: 16 }, | ||
{ numBlocks: 6, dataCodewordsPerBlock: 17 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 17, dataCodewordsPerBlock: 22 }, { numBlocks: 6, dataCodewordsPerBlock: 23 }] | ||
ecBlocks: [ | ||
{ numBlocks: 17, dataCodewordsPerBlock: 22 }, | ||
{ numBlocks: 6, dataCodewordsPerBlock: 23 } | ||
] | ||
} | ||
@@ -521,3 +686,6 @@ ] | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 2, dataCodewordsPerBlock: 111 }, { numBlocks: 7, dataCodewordsPerBlock: 112 }] | ||
ecBlocks: [ | ||
{ numBlocks: 2, dataCodewordsPerBlock: 111 }, | ||
{ numBlocks: 7, dataCodewordsPerBlock: 112 } | ||
] | ||
}, | ||
@@ -530,3 +698,6 @@ { | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 7, dataCodewordsPerBlock: 24 }, { numBlocks: 16, dataCodewordsPerBlock: 25 }] | ||
ecBlocks: [ | ||
{ numBlocks: 7, dataCodewordsPerBlock: 24 }, | ||
{ numBlocks: 16, dataCodewordsPerBlock: 25 } | ||
] | ||
} | ||
@@ -542,15 +713,27 @@ ] | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 4, dataCodewordsPerBlock: 47 }, { numBlocks: 14, dataCodewordsPerBlock: 48 }] | ||
ecBlocks: [ | ||
{ numBlocks: 4, dataCodewordsPerBlock: 47 }, | ||
{ numBlocks: 14, dataCodewordsPerBlock: 48 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 4, dataCodewordsPerBlock: 121 }, { numBlocks: 5, dataCodewordsPerBlock: 122 }] | ||
ecBlocks: [ | ||
{ numBlocks: 4, dataCodewordsPerBlock: 121 }, | ||
{ numBlocks: 5, dataCodewordsPerBlock: 122 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 16, dataCodewordsPerBlock: 15 }, { numBlocks: 14, dataCodewordsPerBlock: 16 }] | ||
ecBlocks: [ | ||
{ numBlocks: 16, dataCodewordsPerBlock: 15 }, | ||
{ numBlocks: 14, dataCodewordsPerBlock: 16 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 11, dataCodewordsPerBlock: 24 }, { numBlocks: 14, dataCodewordsPerBlock: 25 }] | ||
ecBlocks: [ | ||
{ numBlocks: 11, dataCodewordsPerBlock: 24 }, | ||
{ numBlocks: 14, dataCodewordsPerBlock: 25 } | ||
] | ||
} | ||
@@ -566,15 +749,27 @@ ] | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 6, dataCodewordsPerBlock: 45 }, { numBlocks: 14, dataCodewordsPerBlock: 46 }] | ||
ecBlocks: [ | ||
{ numBlocks: 6, dataCodewordsPerBlock: 45 }, | ||
{ numBlocks: 14, dataCodewordsPerBlock: 46 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 6, dataCodewordsPerBlock: 117 }, { numBlocks: 4, dataCodewordsPerBlock: 118 }] | ||
ecBlocks: [ | ||
{ numBlocks: 6, dataCodewordsPerBlock: 117 }, | ||
{ numBlocks: 4, dataCodewordsPerBlock: 118 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 30, dataCodewordsPerBlock: 16 }, { numBlocks: 2, dataCodewordsPerBlock: 17 }] | ||
ecBlocks: [ | ||
{ numBlocks: 30, dataCodewordsPerBlock: 16 }, | ||
{ numBlocks: 2, dataCodewordsPerBlock: 17 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 11, dataCodewordsPerBlock: 24 }, { numBlocks: 16, dataCodewordsPerBlock: 25 }] | ||
ecBlocks: [ | ||
{ numBlocks: 11, dataCodewordsPerBlock: 24 }, | ||
{ numBlocks: 16, dataCodewordsPerBlock: 25 } | ||
] | ||
} | ||
@@ -590,15 +785,27 @@ ] | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 8, dataCodewordsPerBlock: 47 }, { numBlocks: 13, dataCodewordsPerBlock: 48 }] | ||
ecBlocks: [ | ||
{ numBlocks: 8, dataCodewordsPerBlock: 47 }, | ||
{ numBlocks: 13, dataCodewordsPerBlock: 48 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 26, | ||
ecBlocks: [{ numBlocks: 8, dataCodewordsPerBlock: 106 }, { numBlocks: 4, dataCodewordsPerBlock: 107 }] | ||
ecBlocks: [ | ||
{ numBlocks: 8, dataCodewordsPerBlock: 106 }, | ||
{ numBlocks: 4, dataCodewordsPerBlock: 107 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 22, dataCodewordsPerBlock: 15 }, { numBlocks: 13, dataCodewordsPerBlock: 16 }] | ||
ecBlocks: [ | ||
{ numBlocks: 22, dataCodewordsPerBlock: 15 }, | ||
{ numBlocks: 13, dataCodewordsPerBlock: 16 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 7, dataCodewordsPerBlock: 24 }, { numBlocks: 22, dataCodewordsPerBlock: 25 }] | ||
ecBlocks: [ | ||
{ numBlocks: 7, dataCodewordsPerBlock: 24 }, | ||
{ numBlocks: 22, dataCodewordsPerBlock: 25 } | ||
] | ||
} | ||
@@ -614,15 +821,27 @@ ] | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 19, dataCodewordsPerBlock: 46 }, { numBlocks: 4, dataCodewordsPerBlock: 47 }] | ||
ecBlocks: [ | ||
{ numBlocks: 19, dataCodewordsPerBlock: 46 }, | ||
{ numBlocks: 4, dataCodewordsPerBlock: 47 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 10, dataCodewordsPerBlock: 114 }, { numBlocks: 2, dataCodewordsPerBlock: 115 }] | ||
ecBlocks: [ | ||
{ numBlocks: 10, dataCodewordsPerBlock: 114 }, | ||
{ numBlocks: 2, dataCodewordsPerBlock: 115 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 33, dataCodewordsPerBlock: 16 }, { numBlocks: 4, dataCodewordsPerBlock: 17 }] | ||
ecBlocks: [ | ||
{ numBlocks: 33, dataCodewordsPerBlock: 16 }, | ||
{ numBlocks: 4, dataCodewordsPerBlock: 17 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 28, dataCodewordsPerBlock: 22 }, { numBlocks: 6, dataCodewordsPerBlock: 23 }] | ||
ecBlocks: [ | ||
{ numBlocks: 28, dataCodewordsPerBlock: 22 }, | ||
{ numBlocks: 6, dataCodewordsPerBlock: 23 } | ||
] | ||
} | ||
@@ -638,15 +857,27 @@ ] | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 22, dataCodewordsPerBlock: 45 }, { numBlocks: 3, dataCodewordsPerBlock: 46 }] | ||
ecBlocks: [ | ||
{ numBlocks: 22, dataCodewordsPerBlock: 45 }, | ||
{ numBlocks: 3, dataCodewordsPerBlock: 46 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 8, dataCodewordsPerBlock: 122 }, { numBlocks: 4, dataCodewordsPerBlock: 123 }] | ||
ecBlocks: [ | ||
{ numBlocks: 8, dataCodewordsPerBlock: 122 }, | ||
{ numBlocks: 4, dataCodewordsPerBlock: 123 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 12, dataCodewordsPerBlock: 15 }, { numBlocks: 28, dataCodewordsPerBlock: 16 }] | ||
ecBlocks: [ | ||
{ numBlocks: 12, dataCodewordsPerBlock: 15 }, | ||
{ numBlocks: 28, dataCodewordsPerBlock: 16 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 8, dataCodewordsPerBlock: 23 }, { numBlocks: 26, dataCodewordsPerBlock: 24 }] | ||
ecBlocks: [ | ||
{ numBlocks: 8, dataCodewordsPerBlock: 23 }, | ||
{ numBlocks: 26, dataCodewordsPerBlock: 24 } | ||
] | ||
} | ||
@@ -662,15 +893,27 @@ ] | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 3, dataCodewordsPerBlock: 45 }, { numBlocks: 23, dataCodewordsPerBlock: 46 }] | ||
ecBlocks: [ | ||
{ numBlocks: 3, dataCodewordsPerBlock: 45 }, | ||
{ numBlocks: 23, dataCodewordsPerBlock: 46 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 3, dataCodewordsPerBlock: 117 }, { numBlocks: 10, dataCodewordsPerBlock: 118 }] | ||
ecBlocks: [ | ||
{ numBlocks: 3, dataCodewordsPerBlock: 117 }, | ||
{ numBlocks: 10, dataCodewordsPerBlock: 118 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 11, dataCodewordsPerBlock: 15 }, { numBlocks: 31, dataCodewordsPerBlock: 16 }] | ||
ecBlocks: [ | ||
{ numBlocks: 11, dataCodewordsPerBlock: 15 }, | ||
{ numBlocks: 31, dataCodewordsPerBlock: 16 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 4, dataCodewordsPerBlock: 24 }, { numBlocks: 31, dataCodewordsPerBlock: 25 }] | ||
ecBlocks: [ | ||
{ numBlocks: 4, dataCodewordsPerBlock: 24 }, | ||
{ numBlocks: 31, dataCodewordsPerBlock: 25 } | ||
] | ||
} | ||
@@ -686,15 +929,27 @@ ] | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 21, dataCodewordsPerBlock: 45 }, { numBlocks: 7, dataCodewordsPerBlock: 46 }] | ||
ecBlocks: [ | ||
{ numBlocks: 21, dataCodewordsPerBlock: 45 }, | ||
{ numBlocks: 7, dataCodewordsPerBlock: 46 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 7, dataCodewordsPerBlock: 116 }, { numBlocks: 7, dataCodewordsPerBlock: 117 }] | ||
ecBlocks: [ | ||
{ numBlocks: 7, dataCodewordsPerBlock: 116 }, | ||
{ numBlocks: 7, dataCodewordsPerBlock: 117 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 19, dataCodewordsPerBlock: 15 }, { numBlocks: 26, dataCodewordsPerBlock: 16 }] | ||
ecBlocks: [ | ||
{ numBlocks: 19, dataCodewordsPerBlock: 15 }, | ||
{ numBlocks: 26, dataCodewordsPerBlock: 16 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 1, dataCodewordsPerBlock: 23 }, { numBlocks: 37, dataCodewordsPerBlock: 24 }] | ||
ecBlocks: [ | ||
{ numBlocks: 1, dataCodewordsPerBlock: 23 }, | ||
{ numBlocks: 37, dataCodewordsPerBlock: 24 } | ||
] | ||
} | ||
@@ -710,15 +965,27 @@ ] | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 19, dataCodewordsPerBlock: 47 }, { numBlocks: 10, dataCodewordsPerBlock: 48 }] | ||
ecBlocks: [ | ||
{ numBlocks: 19, dataCodewordsPerBlock: 47 }, | ||
{ numBlocks: 10, dataCodewordsPerBlock: 48 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 5, dataCodewordsPerBlock: 115 }, { numBlocks: 10, dataCodewordsPerBlock: 116 }] | ||
ecBlocks: [ | ||
{ numBlocks: 5, dataCodewordsPerBlock: 115 }, | ||
{ numBlocks: 10, dataCodewordsPerBlock: 116 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 23, dataCodewordsPerBlock: 15 }, { numBlocks: 25, dataCodewordsPerBlock: 16 }] | ||
ecBlocks: [ | ||
{ numBlocks: 23, dataCodewordsPerBlock: 15 }, | ||
{ numBlocks: 25, dataCodewordsPerBlock: 16 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 15, dataCodewordsPerBlock: 24 }, { numBlocks: 25, dataCodewordsPerBlock: 25 }] | ||
ecBlocks: [ | ||
{ numBlocks: 15, dataCodewordsPerBlock: 24 }, | ||
{ numBlocks: 25, dataCodewordsPerBlock: 25 } | ||
] | ||
} | ||
@@ -734,15 +1001,27 @@ ] | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 2, dataCodewordsPerBlock: 46 }, { numBlocks: 29, dataCodewordsPerBlock: 47 }] | ||
ecBlocks: [ | ||
{ numBlocks: 2, dataCodewordsPerBlock: 46 }, | ||
{ numBlocks: 29, dataCodewordsPerBlock: 47 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 13, dataCodewordsPerBlock: 115 }, { numBlocks: 3, dataCodewordsPerBlock: 116 }] | ||
ecBlocks: [ | ||
{ numBlocks: 13, dataCodewordsPerBlock: 115 }, | ||
{ numBlocks: 3, dataCodewordsPerBlock: 116 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 23, dataCodewordsPerBlock: 15 }, { numBlocks: 28, dataCodewordsPerBlock: 16 }] | ||
ecBlocks: [ | ||
{ numBlocks: 23, dataCodewordsPerBlock: 15 }, | ||
{ numBlocks: 28, dataCodewordsPerBlock: 16 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 42, dataCodewordsPerBlock: 24 }, { numBlocks: 1, dataCodewordsPerBlock: 25 }] | ||
ecBlocks: [ | ||
{ numBlocks: 42, dataCodewordsPerBlock: 24 }, | ||
{ numBlocks: 1, dataCodewordsPerBlock: 25 } | ||
] | ||
} | ||
@@ -758,3 +1037,6 @@ ] | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 10, dataCodewordsPerBlock: 46 }, { numBlocks: 23, dataCodewordsPerBlock: 47 }] | ||
ecBlocks: [ | ||
{ numBlocks: 10, dataCodewordsPerBlock: 46 }, | ||
{ numBlocks: 23, dataCodewordsPerBlock: 47 } | ||
] | ||
}, | ||
@@ -767,7 +1049,13 @@ { | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 19, dataCodewordsPerBlock: 15 }, { numBlocks: 35, dataCodewordsPerBlock: 16 }] | ||
ecBlocks: [ | ||
{ numBlocks: 19, dataCodewordsPerBlock: 15 }, | ||
{ numBlocks: 35, dataCodewordsPerBlock: 16 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 10, dataCodewordsPerBlock: 24 }, { numBlocks: 35, dataCodewordsPerBlock: 25 }] | ||
ecBlocks: [ | ||
{ numBlocks: 10, dataCodewordsPerBlock: 24 }, | ||
{ numBlocks: 35, dataCodewordsPerBlock: 25 } | ||
] | ||
} | ||
@@ -783,15 +1071,27 @@ ] | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 14, dataCodewordsPerBlock: 46 }, { numBlocks: 21, dataCodewordsPerBlock: 47 }] | ||
ecBlocks: [ | ||
{ numBlocks: 14, dataCodewordsPerBlock: 46 }, | ||
{ numBlocks: 21, dataCodewordsPerBlock: 47 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 17, dataCodewordsPerBlock: 115 }, { numBlocks: 1, dataCodewordsPerBlock: 116 }] | ||
ecBlocks: [ | ||
{ numBlocks: 17, dataCodewordsPerBlock: 115 }, | ||
{ numBlocks: 1, dataCodewordsPerBlock: 116 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 11, dataCodewordsPerBlock: 15 }, { numBlocks: 46, dataCodewordsPerBlock: 16 }] | ||
ecBlocks: [ | ||
{ numBlocks: 11, dataCodewordsPerBlock: 15 }, | ||
{ numBlocks: 46, dataCodewordsPerBlock: 16 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 29, dataCodewordsPerBlock: 24 }, { numBlocks: 19, dataCodewordsPerBlock: 25 }] | ||
ecBlocks: [ | ||
{ numBlocks: 29, dataCodewordsPerBlock: 24 }, | ||
{ numBlocks: 19, dataCodewordsPerBlock: 25 } | ||
] | ||
} | ||
@@ -807,15 +1107,27 @@ ] | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 14, dataCodewordsPerBlock: 46 }, { numBlocks: 23, dataCodewordsPerBlock: 47 }] | ||
ecBlocks: [ | ||
{ numBlocks: 14, dataCodewordsPerBlock: 46 }, | ||
{ numBlocks: 23, dataCodewordsPerBlock: 47 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 13, dataCodewordsPerBlock: 115 }, { numBlocks: 6, dataCodewordsPerBlock: 116 }] | ||
ecBlocks: [ | ||
{ numBlocks: 13, dataCodewordsPerBlock: 115 }, | ||
{ numBlocks: 6, dataCodewordsPerBlock: 116 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 59, dataCodewordsPerBlock: 16 }, { numBlocks: 1, dataCodewordsPerBlock: 17 }] | ||
ecBlocks: [ | ||
{ numBlocks: 59, dataCodewordsPerBlock: 16 }, | ||
{ numBlocks: 1, dataCodewordsPerBlock: 17 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 44, dataCodewordsPerBlock: 24 }, { numBlocks: 7, dataCodewordsPerBlock: 25 }] | ||
ecBlocks: [ | ||
{ numBlocks: 44, dataCodewordsPerBlock: 24 }, | ||
{ numBlocks: 7, dataCodewordsPerBlock: 25 } | ||
] | ||
} | ||
@@ -831,15 +1143,27 @@ ] | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 12, dataCodewordsPerBlock: 47 }, { numBlocks: 26, dataCodewordsPerBlock: 48 }] | ||
ecBlocks: [ | ||
{ numBlocks: 12, dataCodewordsPerBlock: 47 }, | ||
{ numBlocks: 26, dataCodewordsPerBlock: 48 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 12, dataCodewordsPerBlock: 121 }, { numBlocks: 7, dataCodewordsPerBlock: 122 }] | ||
ecBlocks: [ | ||
{ numBlocks: 12, dataCodewordsPerBlock: 121 }, | ||
{ numBlocks: 7, dataCodewordsPerBlock: 122 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 22, dataCodewordsPerBlock: 15 }, { numBlocks: 41, dataCodewordsPerBlock: 16 }] | ||
ecBlocks: [ | ||
{ numBlocks: 22, dataCodewordsPerBlock: 15 }, | ||
{ numBlocks: 41, dataCodewordsPerBlock: 16 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 39, dataCodewordsPerBlock: 24 }, { numBlocks: 14, dataCodewordsPerBlock: 25 }] | ||
ecBlocks: [ | ||
{ numBlocks: 39, dataCodewordsPerBlock: 24 }, | ||
{ numBlocks: 14, dataCodewordsPerBlock: 25 } | ||
] | ||
} | ||
@@ -855,15 +1179,27 @@ ] | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 6, dataCodewordsPerBlock: 47 }, { numBlocks: 34, dataCodewordsPerBlock: 48 }] | ||
ecBlocks: [ | ||
{ numBlocks: 6, dataCodewordsPerBlock: 47 }, | ||
{ numBlocks: 34, dataCodewordsPerBlock: 48 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 6, dataCodewordsPerBlock: 121 }, { numBlocks: 14, dataCodewordsPerBlock: 122 }] | ||
ecBlocks: [ | ||
{ numBlocks: 6, dataCodewordsPerBlock: 121 }, | ||
{ numBlocks: 14, dataCodewordsPerBlock: 122 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 2, dataCodewordsPerBlock: 15 }, { numBlocks: 64, dataCodewordsPerBlock: 16 }] | ||
ecBlocks: [ | ||
{ numBlocks: 2, dataCodewordsPerBlock: 15 }, | ||
{ numBlocks: 64, dataCodewordsPerBlock: 16 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 46, dataCodewordsPerBlock: 24 }, { numBlocks: 10, dataCodewordsPerBlock: 25 }] | ||
ecBlocks: [ | ||
{ numBlocks: 46, dataCodewordsPerBlock: 24 }, | ||
{ numBlocks: 10, dataCodewordsPerBlock: 25 } | ||
] | ||
} | ||
@@ -879,15 +1215,27 @@ ] | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 29, dataCodewordsPerBlock: 46 }, { numBlocks: 14, dataCodewordsPerBlock: 47 }] | ||
ecBlocks: [ | ||
{ numBlocks: 29, dataCodewordsPerBlock: 46 }, | ||
{ numBlocks: 14, dataCodewordsPerBlock: 47 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 17, dataCodewordsPerBlock: 122 }, { numBlocks: 4, dataCodewordsPerBlock: 123 }] | ||
ecBlocks: [ | ||
{ numBlocks: 17, dataCodewordsPerBlock: 122 }, | ||
{ numBlocks: 4, dataCodewordsPerBlock: 123 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 24, dataCodewordsPerBlock: 15 }, { numBlocks: 46, dataCodewordsPerBlock: 16 }] | ||
ecBlocks: [ | ||
{ numBlocks: 24, dataCodewordsPerBlock: 15 }, | ||
{ numBlocks: 46, dataCodewordsPerBlock: 16 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 49, dataCodewordsPerBlock: 24 }, { numBlocks: 10, dataCodewordsPerBlock: 25 }] | ||
ecBlocks: [ | ||
{ numBlocks: 49, dataCodewordsPerBlock: 24 }, | ||
{ numBlocks: 10, dataCodewordsPerBlock: 25 } | ||
] | ||
} | ||
@@ -903,15 +1251,27 @@ ] | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 13, dataCodewordsPerBlock: 46 }, { numBlocks: 32, dataCodewordsPerBlock: 47 }] | ||
ecBlocks: [ | ||
{ numBlocks: 13, dataCodewordsPerBlock: 46 }, | ||
{ numBlocks: 32, dataCodewordsPerBlock: 47 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 4, dataCodewordsPerBlock: 122 }, { numBlocks: 18, dataCodewordsPerBlock: 123 }] | ||
ecBlocks: [ | ||
{ numBlocks: 4, dataCodewordsPerBlock: 122 }, | ||
{ numBlocks: 18, dataCodewordsPerBlock: 123 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 42, dataCodewordsPerBlock: 15 }, { numBlocks: 32, dataCodewordsPerBlock: 16 }] | ||
ecBlocks: [ | ||
{ numBlocks: 42, dataCodewordsPerBlock: 15 }, | ||
{ numBlocks: 32, dataCodewordsPerBlock: 16 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 48, dataCodewordsPerBlock: 24 }, { numBlocks: 14, dataCodewordsPerBlock: 25 }] | ||
ecBlocks: [ | ||
{ numBlocks: 48, dataCodewordsPerBlock: 24 }, | ||
{ numBlocks: 14, dataCodewordsPerBlock: 25 } | ||
] | ||
} | ||
@@ -927,15 +1287,27 @@ ] | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 40, dataCodewordsPerBlock: 47 }, { numBlocks: 7, dataCodewordsPerBlock: 48 }] | ||
ecBlocks: [ | ||
{ numBlocks: 40, dataCodewordsPerBlock: 47 }, | ||
{ numBlocks: 7, dataCodewordsPerBlock: 48 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 20, dataCodewordsPerBlock: 117 }, { numBlocks: 4, dataCodewordsPerBlock: 118 }] | ||
ecBlocks: [ | ||
{ numBlocks: 20, dataCodewordsPerBlock: 117 }, | ||
{ numBlocks: 4, dataCodewordsPerBlock: 118 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 10, dataCodewordsPerBlock: 15 }, { numBlocks: 67, dataCodewordsPerBlock: 16 }] | ||
ecBlocks: [ | ||
{ numBlocks: 10, dataCodewordsPerBlock: 15 }, | ||
{ numBlocks: 67, dataCodewordsPerBlock: 16 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 43, dataCodewordsPerBlock: 24 }, { numBlocks: 22, dataCodewordsPerBlock: 25 }] | ||
ecBlocks: [ | ||
{ numBlocks: 43, dataCodewordsPerBlock: 24 }, | ||
{ numBlocks: 22, dataCodewordsPerBlock: 25 } | ||
] | ||
} | ||
@@ -951,15 +1323,27 @@ ] | ||
ecCodewordsPerBlock: 28, | ||
ecBlocks: [{ numBlocks: 18, dataCodewordsPerBlock: 47 }, { numBlocks: 31, dataCodewordsPerBlock: 48 }] | ||
ecBlocks: [ | ||
{ numBlocks: 18, dataCodewordsPerBlock: 47 }, | ||
{ numBlocks: 31, dataCodewordsPerBlock: 48 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 19, dataCodewordsPerBlock: 118 }, { numBlocks: 6, dataCodewordsPerBlock: 119 }] | ||
ecBlocks: [ | ||
{ numBlocks: 19, dataCodewordsPerBlock: 118 }, | ||
{ numBlocks: 6, dataCodewordsPerBlock: 119 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 20, dataCodewordsPerBlock: 15 }, { numBlocks: 61, dataCodewordsPerBlock: 16 }] | ||
ecBlocks: [ | ||
{ numBlocks: 20, dataCodewordsPerBlock: 15 }, | ||
{ numBlocks: 61, dataCodewordsPerBlock: 16 } | ||
] | ||
}, | ||
{ | ||
ecCodewordsPerBlock: 30, | ||
ecBlocks: [{ numBlocks: 34, dataCodewordsPerBlock: 24 }, { numBlocks: 34, dataCodewordsPerBlock: 25 }] | ||
ecBlocks: [ | ||
{ numBlocks: 34, dataCodewordsPerBlock: 24 }, | ||
{ numBlocks: 34, dataCodewordsPerBlock: 25 } | ||
] | ||
} | ||
@@ -966,0 +1350,0 @@ ] |
@@ -1,2 +0,2 @@ | ||
import { BitMatrix } from './BitMatrix.js'; | ||
import { BitMatrix as BitMatrix$1 } from './BitMatrix.js'; | ||
@@ -78,3 +78,3 @@ /** | ||
var transform = times(sToQ, qToS); | ||
var matrix = BitMatrix.createEmpty(location.dimension, location.dimension); | ||
var matrix = BitMatrix$1.createEmpty(location.dimension, location.dimension); | ||
var mappingFunction = function (x, y) { | ||
@@ -81,0 +81,0 @@ var denominator = transform.a13 * x + transform.a23 * y + transform.a33; |
@@ -1,5 +0,5 @@ | ||
import { Mode } from '../common/Mode.js'; | ||
import { Mode as Mode$1 } from '../common/Mode.js'; | ||
import { __extends } from 'tslib'; | ||
import { QRData } from './QRData.js'; | ||
import { UTF16 } from '../../encoding/UTF16.js'; | ||
import { QRData as QRData$1 } from './QRData.js'; | ||
import { UTF16 as UTF16$1 } from '../../encoding/UTF16.js'; | ||
@@ -61,4 +61,4 @@ /** | ||
function QRAlphanumeric(data) { | ||
var _this = _super.call(this, Mode.Alphanumeric, data) || this; | ||
_this.bytes = UTF16(data); | ||
var _this = _super.call(this, Mode$1.Alphanumeric, data) || this; | ||
_this.bytes = UTF16$1(data); | ||
return _this; | ||
@@ -92,4 +92,4 @@ } | ||
return QRAlphanumeric; | ||
}(QRData)); | ||
}(QRData$1)); | ||
export { QRAlphanumeric }; |
@@ -1,5 +0,5 @@ | ||
import { Mode } from '../common/Mode.js'; | ||
import { Mode as Mode$1 } from '../common/Mode.js'; | ||
import { __extends } from 'tslib'; | ||
import { QRData } from './QRData.js'; | ||
import { UTF8 } from '../../encoding/UTF8.js'; | ||
import { QRData as QRData$1 } from './QRData.js'; | ||
import { UTF8 as UTF8$1 } from '../../encoding/UTF8.js'; | ||
@@ -18,3 +18,3 @@ /** | ||
function QRByte(data, encode) { | ||
var _this = _super.call(this, Mode.Byte, data) || this; | ||
var _this = _super.call(this, Mode$1.Byte, data) || this; | ||
_this.encoding = -1; | ||
@@ -27,3 +27,3 @@ if (typeof encode === 'function') { | ||
else { | ||
_this.bytes = UTF8(data); | ||
_this.bytes = UTF8$1(data); | ||
_this.encoding = 26 /* UTF8 */; | ||
@@ -54,4 +54,4 @@ } | ||
return QRByte; | ||
}(QRData)); | ||
}(QRData$1)); | ||
export { QRByte }; |
@@ -1,2 +0,2 @@ | ||
import { Mode } from '../common/Mode.js'; | ||
import { Mode as Mode$1 } from '../common/Mode.js'; | ||
@@ -22,9 +22,9 @@ /** | ||
switch (mode) { | ||
case Mode.Numeric: | ||
case Mode$1.Numeric: | ||
return 10; | ||
case Mode.Alphanumeric: | ||
case Mode$1.Alphanumeric: | ||
return 9; | ||
case Mode.Byte: | ||
case Mode$1.Byte: | ||
return 8; | ||
case Mode.Kanji: | ||
case Mode$1.Kanji: | ||
return 8; | ||
@@ -38,9 +38,9 @@ default: | ||
switch (mode) { | ||
case Mode.Numeric: | ||
case Mode$1.Numeric: | ||
return 12; | ||
case Mode.Alphanumeric: | ||
case Mode$1.Alphanumeric: | ||
return 11; | ||
case Mode.Byte: | ||
case Mode$1.Byte: | ||
return 16; | ||
case Mode.Kanji: | ||
case Mode$1.Kanji: | ||
return 10; | ||
@@ -54,9 +54,9 @@ default: | ||
switch (mode) { | ||
case Mode.Numeric: | ||
case Mode$1.Numeric: | ||
return 14; | ||
case Mode.Alphanumeric: | ||
case Mode$1.Alphanumeric: | ||
return 13; | ||
case Mode.Byte: | ||
case Mode$1.Byte: | ||
return 16; | ||
case Mode.Kanji: | ||
case Mode$1.Kanji: | ||
return 12; | ||
@@ -63,0 +63,0 @@ default: |
@@ -1,5 +0,5 @@ | ||
import { Mode } from '../common/Mode.js'; | ||
import { Mode as Mode$1 } from '../common/Mode.js'; | ||
import { __extends } from 'tslib'; | ||
import { QRData } from './QRData.js'; | ||
import { SJIS } from '../../encoding/SJIS.js'; | ||
import { QRData as QRData$1 } from './QRData.js'; | ||
import { SJIS as SJIS$1 } from '../../encoding/SJIS.js'; | ||
@@ -19,4 +19,4 @@ /** | ||
function QRKanji(data) { | ||
var _this = _super.call(this, Mode.Kanji, data) || this; | ||
_this.bytes = SJIS(data); | ||
var _this = _super.call(this, Mode$1.Kanji, data) || this; | ||
_this.bytes = SJIS$1(data); | ||
return _this; | ||
@@ -55,4 +55,4 @@ } | ||
return QRKanji; | ||
}(QRData)); | ||
}(QRData$1)); | ||
export { QRKanji }; |
@@ -1,5 +0,5 @@ | ||
import { Mode } from '../common/Mode.js'; | ||
import { Mode as Mode$1 } from '../common/Mode.js'; | ||
import { __extends } from 'tslib'; | ||
import { QRData } from './QRData.js'; | ||
import { UTF16 } from '../../encoding/UTF16.js'; | ||
import { QRData as QRData$1 } from './QRData.js'; | ||
import { UTF16 as UTF16$1 } from '../../encoding/UTF16.js'; | ||
@@ -33,4 +33,4 @@ /** | ||
function QRNumeric(data) { | ||
var _this = _super.call(this, Mode.Numeric, data) || this; | ||
_this.bytes = UTF16(data); | ||
var _this = _super.call(this, Mode$1.Numeric, data) || this; | ||
_this.bytes = UTF16$1(data); | ||
return _this; | ||
@@ -69,4 +69,4 @@ } | ||
return QRNumeric; | ||
}(QRData)); | ||
}(QRData$1)); | ||
export { QRNumeric }; |
import { gexp } from './QRMath.js'; | ||
import { Polynomial } from './Polynomial.js'; | ||
import { Polynomial as Polynomial$1 } from './Polynomial.js'; | ||
@@ -62,5 +62,5 @@ /** | ||
function getErrorCorrectionPolynomial(errorCorrectionLength) { | ||
var e = new Polynomial([1]); | ||
var e = new Polynomial$1([1]); | ||
for (var i = 0; i < errorCorrectionLength; i++) { | ||
e = e.multiply(new Polynomial([1, gexp(i)])); | ||
e = e.multiply(new Polynomial$1([1, gexp(i)])); | ||
} | ||
@@ -67,0 +67,0 @@ return e; |
@@ -1,2 +0,2 @@ | ||
import { ErrorCorrectionLevel } from '../common/ErrorCorrectionLevel.js'; | ||
import { ErrorCorrectionLevel as ErrorCorrectionLevel$1 } from '../common/ErrorCorrectionLevel.js'; | ||
@@ -35,9 +35,9 @@ /** | ||
switch (errorCorrectionLevel) { | ||
case ErrorCorrectionLevel.L: | ||
case ErrorCorrectionLevel$1.L: | ||
return RSBlock.RS_BLOCK_TABLE[(version - 1) * 4 + 0]; | ||
case ErrorCorrectionLevel.M: | ||
case ErrorCorrectionLevel$1.M: | ||
return RSBlock.RS_BLOCK_TABLE[(version - 1) * 4 + 1]; | ||
case ErrorCorrectionLevel.Q: | ||
case ErrorCorrectionLevel$1.Q: | ||
return RSBlock.RS_BLOCK_TABLE[(version - 1) * 4 + 2]; | ||
case ErrorCorrectionLevel.H: | ||
case ErrorCorrectionLevel$1.H: | ||
return RSBlock.RS_BLOCK_TABLE[(version - 1) * 4 + 3]; | ||
@@ -44,0 +44,0 @@ default: |
@@ -1,10 +0,10 @@ | ||
import { Mode } from '../common/Mode.js'; | ||
import { QRData } from './QRData.js'; | ||
import { QRByte } from './QRByte.js'; | ||
import { Polynomial } from './Polynomial.js'; | ||
import { Mode as Mode$1 } from '../common/Mode.js'; | ||
import { QRData as QRData$1 } from './QRData.js'; | ||
import { QRByte as QRByte$1 } from './QRByte.js'; | ||
import { Polynomial as Polynomial$1 } from './Polynomial.js'; | ||
import { getAlignmentPattern, getBCHVersion, calculateMaskPenalty, getErrorCorrectionPolynomial, getBCHVersionInfo } from './QRUtil.js'; | ||
import { ErrorCorrectionLevel } from '../common/ErrorCorrectionLevel.js'; | ||
import { RSBlock } from './RSBlock.js'; | ||
import { BitBuffer } from './BitBuffer.js'; | ||
import { GIFImage } from '../../image/GIFImage.js'; | ||
import { ErrorCorrectionLevel as ErrorCorrectionLevel$1 } from '../common/ErrorCorrectionLevel.js'; | ||
import { RSBlock as RSBlock$1 } from './RSBlock.js'; | ||
import { BitBuffer as BitBuffer$1 } from './BitBuffer.js'; | ||
import { GIFImage as GIFImage$1 } from '../../image/GIFImage.js'; | ||
import { getMaskFunc } from '../common/MaskPattern.js'; | ||
@@ -31,3 +31,3 @@ | ||
} | ||
buffer.put(Mode.ECI, 4); | ||
buffer.put(Mode$1.ECI, 4); | ||
if (encoding < 1 << 7) { | ||
@@ -47,4 +47,4 @@ buffer.put(encoding, 8); | ||
var dLength = chunks.length; | ||
var buffer = new BitBuffer(); | ||
var rsBlocks = RSBlock.getRSBlocks(version, errorCorrectionLevel); | ||
var buffer = new BitBuffer$1(); | ||
var rsBlocks = RSBlock$1.getRSBlocks(version, errorCorrectionLevel); | ||
for (var i = 0; i < dLength; i++) { | ||
@@ -54,3 +54,3 @@ var data = chunks[i]; | ||
// Default set encoding UTF-8 when has encoding hint | ||
if (hasEncodingHint && mode === Mode.Byte) { | ||
if (hasEncodingHint && mode === Mode$1.Byte) { | ||
appendECI(data.encoding, buffer); | ||
@@ -92,3 +92,3 @@ } | ||
var ecLength = rsPoly.getLength() - 1; | ||
var rawPoly = new Polynomial(dcData[r], ecLength); | ||
var rawPoly = new Polynomial$1(dcData[r], ecLength); | ||
var modPoly = rawPoly.mod(rsPoly); | ||
@@ -102,3 +102,3 @@ var mpLength = modPoly.getLength(); | ||
} | ||
buffer = new BitBuffer(); | ||
buffer = new BitBuffer$1(); | ||
for (var i = 0; i < maxDcCount; i++) { | ||
@@ -153,3 +153,3 @@ for (var r = 0; r < rsLength; r++) { | ||
this.autoVersion = this.version === 0; | ||
this.errorCorrectionLevel = ErrorCorrectionLevel.L; | ||
this.errorCorrectionLevel = ErrorCorrectionLevel$1.L; | ||
} | ||
@@ -204,6 +204,6 @@ /** | ||
switch (errorCorrectionLevel) { | ||
case ErrorCorrectionLevel.L: | ||
case ErrorCorrectionLevel.M: | ||
case ErrorCorrectionLevel.Q: | ||
case ErrorCorrectionLevel.H: | ||
case ErrorCorrectionLevel$1.L: | ||
case ErrorCorrectionLevel$1.M: | ||
case ErrorCorrectionLevel$1.Q: | ||
case ErrorCorrectionLevel$1.H: | ||
this.errorCorrectionLevel = errorCorrectionLevel; | ||
@@ -236,3 +236,3 @@ } | ||
Encoder.prototype.write = function (data) { | ||
if (data instanceof QRData) { | ||
if (data instanceof QRData$1) { | ||
this.chunks.push(data); | ||
@@ -243,3 +243,3 @@ } | ||
if (type === '[object String]') { | ||
this.chunks.push(new QRByte(data)); | ||
this.chunks.push(new QRByte$1(data)); | ||
} | ||
@@ -478,3 +478,3 @@ else { | ||
var size = moduleSize * moduleCount + margin * 2; | ||
var gif = new GIFImage(size, size); | ||
var gif = new GIFImage$1(size, size); | ||
for (var y = 0; y < size; y++) { | ||
@@ -481,0 +481,0 @@ for (var x = 0; x < size; x++) { |
{ | ||
"name": "@nuintun/qrcode", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "A pure JavaScript QRCode encode and decode library.", | ||
@@ -38,9 +38,9 @@ "main": "es5/index.js", | ||
"del": "^5.1.0", | ||
"rollup": "^1.32.0", | ||
"rollup": "^2.6.1", | ||
"typescript": "^3.8.3", | ||
"magic-string": "^0.25.6", | ||
"rollup-plugin-typescript2": "^0.26.0", | ||
"@rollup/plugin-node-resolve": "^7.1.1" | ||
"magic-string": "^0.25.7", | ||
"rollup-plugin-typescript2": "^0.27.0", | ||
"@rollup/plugin-node-resolve": "^7.1.3" | ||
}, | ||
"homepage": "https://github.com/nuintun/qrcode#readme" | ||
} |
@@ -22,6 +22,6 @@ /** | ||
* @function SJIS | ||
* @param {string} str | ||
* @param {string} text | ||
* @returns {number[]} | ||
*/ | ||
export declare function SJIS(str: string): number[]; | ||
export declare function SJIS(text: string): number[]; | ||
export {}; |
@@ -5,2 +5,7 @@ /** | ||
*/ | ||
export declare function UTF16(str: string): number[]; | ||
/** | ||
* @function UTF16 | ||
* @param {string} text | ||
* @returns {number[]} | ||
*/ | ||
export declare function UTF16(text: string): number[]; |
@@ -7,6 +7,6 @@ /** | ||
* @function UTF8 | ||
* @param {string} str | ||
* @param {string} text | ||
* @returns {number[]} | ||
* @see https://github.com/google/closure-library/blob/master/closure/goog/crypt/crypt.js | ||
*/ | ||
export declare function UTF8(str: string): number[]; | ||
export declare function UTF8(text: string): number[]; |
@@ -9,3 +9,2 @@ /** | ||
* @readonly | ||
* @enum {L, M, Q, H} | ||
*/ | ||
@@ -12,0 +11,0 @@ export declare enum ErrorCorrectionLevel { |
@@ -7,2 +7,5 @@ /** | ||
*/ | ||
/** | ||
* @readonly | ||
*/ | ||
export declare enum Mode { | ||
@@ -9,0 +12,0 @@ Terminator = 0, |
Sorry, the diff of this file is not supported yet
419294
10946