The dereferencing is necessary because is interpreting the address of s[p] as a
pointer of uint32. Also, if you don't actually need a sequence, just use plain
arrays.
doAssert 257u == cast[uint32]([1u8, 1, 0, 0])
- Best way to convert sequence of bytes to uint32 jlindsay
- Re: Best way to convert sequence of bytes to uint32 Stefan_Salewski
- Re: Best way to convert sequence of bytes to uint... jlindsay
- Re: Best way to convert sequence of bytes to ... Stefan_Salewski
- Re: Best way to convert sequence of bytes... jlindsay
- Re: Best way to convert sequence of ... Stefan_Salewski
- Re: Best way to convert sequence... jlindsay
- Re: Best way to convert sequ... Arrrrrrrrr
- Re: Best way to convert sequ... lucian
- Re: Best way to convert sequ... jlindsay
- Re: Best way to convert sequ... Krux02
- Re: Best way to convert sequ... Araq
- Re: Best way to convert sequ... jlindsay
- Re: Best way to convert sequ... Stefan_Salewski
- Re: Best way to convert sequ... jlindsay
- Re: Best way to convert sequ... ManfredLotz
- Re: Best way to convert sequ... Araq
- Re: Best way to convert sequ... jlindsay
