(src, dest, srcStart, srcEnd, destStart)
| 15 | } |
| 16 | |
| 17 | function bufferCopy(src, dest, srcStart, srcEnd, destStart) { |
| 18 | if (!destStart) |
| 19 | destStart = 0; |
| 20 | if (srcEnd > src.length) |
| 21 | srcEnd = src.length; |
| 22 | let nb = srcEnd - srcStart; |
| 23 | const destLeft = (dest.length - destStart); |
| 24 | if (nb > destLeft) |
| 25 | nb = destLeft; |
| 26 | dest.set(new Uint8Array(src.buffer, src.byteOffset + srcStart, nb), |
| 27 | destStart); |
| 28 | return nb; |
| 29 | } |
| 30 | |
| 31 | function bufferSlice(buf, start, end) { |
| 32 | if (end === undefined) |
no outgoing calls
no test coverage detected
searching dependent graphs…