unpack32

Function unpack32 

Source
pub fn unpack32(bytes: &[u8]) -> Result<u32>
Expand description

Unpack a single WTF-8 sequence into its codepoint (as u32).

Decoded values are guaranteed to be within 0x0000_0000..=0x0010_FFFF (PACK32_MIN..=PACK32_MAX).

Errors if the input is not a single valid WTF-8 codepoint sequence or if extra bytes remain after the first decoded codepoint.

(Original: unpack32)