gpui: Simplify u8 to u32 conversion (#32099)

Removes an allocation when converting four u8 into a u32.
Makes some functions const compatible.

Release Notes:

- N/A
738cfdff84tidely committed on 6/5/2025, 3:57:27 PM· committed by GitHubparent32d5a2c
1 file changedLine totals unavailable