MCPcopy
hub / github.com/lowlighter/metrics / checkRange

Function checkRange

source/plugins/community/splatoon/s3si/index.ts:1098–1102  ·  view source on GitHub ↗
(start, end, len)

Source from the content-addressed store, hash-verified

1096 }
1097}
1098function checkRange(start, end, len) {
1099 if (start < 0 || len < start || end < 0 || len < end || end < start) {
1100 throw new Error("invalid range");
1101 }
1102}
1103function concat(...buf) {
1104 let length = 0;
1105 for (const b of buf){

Callers 2

addMethod · 0.85
sliceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected