(sequences)
| 61350 | return "UTF-8"; |
| 61351 | } else if (a4 === 254 && b7 === 255) { |
| 61352 | return "UTF-16BE"; |
| 61353 | } else if (a4 === 255 && b7 === 254) { |
| 61354 | return "UTF-16LE"; |
| 61355 | } |
| 61356 | return null; |
| 61357 | } |
| 61358 | function combineByteSequences(sequences) { |
| 61359 | const size = sequences.reduce((a4, b7) => { |
| 61360 | return a4 + b7.byteLength; |
| 61361 | }, 0); |
| 61362 | let offset = 0; |
| 61363 | return sequences.reduce((a4, b7) => { |
| 61364 | a4.set(b7, offset); |
| 61365 | offset += b7.byteLength; |
no test coverage detected
searching dependent graphs…