(buf, cp)
| 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) { |
no test coverage detected
searching dependent graphs…