Function toBufferLE

  • Convert a BigInt to a little-endian buffer.

    Parameters

    • num: bigint

      The BigInt to convert.

    • width: number

      The number of bytes that the resulting buffer should be.

    Returns Buffer

    A little-endian buffer representation of num.