November 23, 2013 Re: Read Byte Array to Integer | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jeroen Bollen | On 11/23/2013 08:36 AM, Jeroen Bollen wrote: > So if I have a byte array [0, 0, 1, 0], and I read a ushort from it > twice, I will get this? > > ubyte[] arr = [0, 0, 1, 0]; > arr.read!(ushort, Endian.littleEndian); // == 0 > arr.read!(ushort, Endian.littleEndian); // == 1 > arr.length; // == 0 Yes, that's the idea. Ali |
Copyright © 1999-2021 by the D Language Foundation