Function fromBytes

  • Converts bytes to an U8 value

    Parameters

    • bytes: Uint8Array

      The bytes to convert

    Returns U8_t

    The U8 representation of the bytes

    Remarks

    Silently ignores bytes that are not needed to represent the U8 value.