MCPcopy
hub / github.com/di-sukharev/opencommit / combineByteSequences

Function combineByteSequences

out/cli.cjs:61352–61362  ·  view source on GitHub ↗
(sequences)

Source from the content-addressed store, hash-verified

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;

Callers 2

packageDataFunction · 0.85
decodeFunction · 0.85

Calls 1

setMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…