Hrdcoded
aerto
cvsae at gmx.com
Mon Jan 16 15:18:20 UTC 2023
On Monday, 16 January 2023 at 15:16:46 UTC, aerto wrote:
> Hello, and Happy new year. I'm a bit confused.
>
> uint read()
> {
> assert(pos == 68);
>
> uint value =
> littleEndianToNative!uint(cast(ubyte[uint.sizeof])buffer[pos..pos+uint.sizeof]);
> pos += uint.sizeof;
> return value;
> }
>
>
> The above code doesn't work. instead its working perfect when i
> replace buffer[68..68+uint.sizeof] Any thoughts ?
Sorry for the wrong section and the bad title.
More information about the Digitalmars-d
mailing list