• Encode a positive number (or bigint) into a Buffer. The number will be floored to the nearest integer.

    Parameters

    • value: number | bigint

      The number to encode.

    Returns ArrayBuffer