I want to convert the [u8; 2]
back to u16
.
I found this isn't simply a u16::from_be_bytes
or u16::from_le_bytes
.
Substrate and Polkadot Stack Exchange is a question and answer site for developers building blockchains with the Substrate SDK. It only takes a minute to sign up.
Sign up to join this communityIt's impossible.
The information was lost in this algorithm.