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

Function strictlySplitByteSequence

out/cli.cjs:4685–4698  ·  view source on GitHub ↗
(buf, cp)

Source from the content-addressed store, hash-verified

4683 return output;
4684 }
4685 function strictlySplitByteSequence(buf, cp) {
4686 const list = [];
4687 let last = 0;
4688 let i3 = buf.indexOf(cp);
4689 while (i3 >= 0) {
4690 list.push(buf.slice(last, i3));
4691 last = i3 + 1;
4692 i3 = buf.indexOf(cp, last);
4693 }
4694 if (last !== buf.length) {
4695 list.push(buf.slice(last));
4696 }
4697 return list;
4698 }
4699 function replaceByteInByteSequence(buf, from, to) {
4700 let i3 = buf.indexOf(from);
4701 while (i3 >= 0) {

Callers 1

parseUrlencodedFunction · 0.85

Calls 2

pushMethod · 0.45
sliceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…