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