Function fromBytes

  • Converts bytes to an U16 value

    Parameters

    • bytes: Uint8Array

      The bytes to convert

    Returns U16_t

    The U16 representation of the bytes

    Remarks

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