search for: _makecrctable

Displaying 3 results from an estimated 3 matches for "_makecrctable".

2018 Nov 23
1
How to concatenate Ogg in the browser JS?
...g the table produces the same result. I think that generating the table is better than having hardcoded one - for security against the case when somebody accidentally change one character and this table will continue to work in 99% of cases. My current JS code for building table: > > function _makeCRCTable() { >     const CRCTable = new Uint32Array(256); >     for (let i = 256; i--;) { >         let char = i; >         for (let j = 8; j--;) { >             char = char & 1 ? 3988292384 ^ char >>> 1 : char >>> 1; >         } >         CRCTable[i] = char; >...
2018 Nov 16
4
How to concatenate Ogg in the browser JS?
Please see the documentation: https://xiph.org/ogg/doc/framing.html I would encourage you to use random serial numbers, as intended, also, as any downstream consumers of your files will face limitations similar to the ones you are facing if they want to do anything more with them. But before you go too far down the route of changing the serial numbers, can you tell us what software is
2018 Nov 22
0
How to concatenate Ogg in the browser JS?
...r building the table produces the same result. I think that generating the table is better than having hardcoded one - for security against the case when somebody accidentally change one character and this table will continue to work in 99% of cases. My current JS code for building table: function _makeCRCTable() { const CRCTable = new Uint32Array(256); for (let i = 256; i--;) { let char = i; for (let j = 8; j--;) { char = char & 1 ? 3988292384 ^ char >>> 1 : char >>> 1; } CRCTable[i] = char; } return CRCTable; } I need to...