• Reverse a buffer (or a part of it) into a new buffer

    Parameters

    • buf: Uint8Array
    • start: number = 0
    • end: number = buf.length

    Returns Uint8Array