• Copy a buffer

    Parameters

    • buf: Uint8Array

      Buffer to copy

    • start: number = 0

      Start offset

    • end: number = buf.length

      End offset

    Returns Uint8Array