Function toBytes

  • Converts an integer number to StaticArray

    Type Parameters

    • T

      the type of the number to convert (it must be an integer type, such as i32, u32, i64, or u64)

    Parameters

    • val: T

      the number to convert

    Returns StaticArray<u8>

    the converted StaticArray

    Remarks

    Won't compile if the type param is not an integer.

    See

    isInteger

Generated using TypeDoc