copy(
    targetBuffer,
    targetStart = 0,
    sourceStart = 0,
    sourceEnd = this.length,
  ) {
    const sourceBuffer = this.subarray(sourceStart, sourceEnd);
    targetBuffer.set(sourceBuffer, targetStart);
    return sourceBuffer.length;
  }
/**
   * Copies data from a region of buf to a region in target, even if the target
   * memory region overlaps with buf.
   */
Copies data from a region of buf to a region in target, even if the target
memory region overlaps with buf.
Copies data from a region of buf to a region in target even if the target memory region overlaps with buf .
copy(
    targetBuffer,
    targetStart = 0,
    sourceStart = 0,
    sourceEnd = this.length,
  ) {
    const sourceBuffer = this.subarray(sourceStart, sourceEnd);
    targetBuffer.set(sourceBuffer, targetStart);
    return sourceBuffer.length;
  }
copy ( targetBuffer , targetStart = 0 , sourceStart = 0 , sourceEnd = this . length , ) { const sourceBuffer = this . subarray ( sourceStart , sourceEnd ) ; targetBuffer . set ( sourceBuffer , targetStart ) ; return sourceBuffer . length ; }
Copies data from a region of buf to a region in target, even if the target
 memory region overlaps with buf.
Copies data from a region of buf to a region in target even if the target memory region overlaps with buf .