* Copies the encoded chunk data to a destination buffer.
(destination: AllowSharedBufferSource)
| 67 | * Copies the encoded chunk data to a destination buffer. |
| 68 | */ |
| 69 | copyTo(destination: AllowSharedBufferSource) { |
| 70 | if (destination.byteLength < this.data.byteLength) { |
| 71 | throw new TypeError('Destination buffer is too small.'); |
| 72 | } |
| 73 | |
| 74 | toUint8Array(destination).set(this.data); |
| 75 | } |
| 76 | } |
nothing calls this directly
no test coverage detected