(src, dst, offset, length)
| 2061 | } |
| 2062 | |
| 2063 | function blitBuffer (src, dst, offset, length) { |
| 2064 | let i |
| 2065 | for (i = 0; i < length; ++i) { |
| 2066 | if ((i + offset >= dst.length) || (i >= src.length)) break |
| 2067 | dst[i + offset] = src[i] |
| 2068 | } |
| 2069 | return i |
| 2070 | } |
| 2071 | |
| 2072 | // ArrayBuffer or Uint8Array objects from other contexts (i.e. iframes) do not pass |
| 2073 | // the `instanceof` check but they should be treated as of that type. |
no outgoing calls
no test coverage detected
searching dependent graphs…