Ah, so it's about lvalues an rvalues, not the type of the range. Makes sense now.

On Tuesday, 26 December 2017 at 22:33:54 UTC, WebFreak001 wrote:
BigEndian is default btw, you don't need to specify that but you can if you want.

Dealing with Endianness bugs has been such a pain, I like to be explicit about it ;)

On Tuesday, 26 December 2017 at 22:33:54 UTC, WebFreak001 wrote:
What peek does now is first dereferencing your pointer there to get the current value of i to look where to read and then increment the value by T.sizeof (uint.sizeof here, which is 4). With this you can read multiple successing values without doing anything with i. You can also pass a normal int value instead of a pointer which will just peek without advancing the value

That function is more applicable here, thanks!

Reply via email to