Hi Mattias, Is there an equivalent for
shortv:=buffer[5]; shortv+=buffer[6] shl 8; Many thanks Dave 2008/12/21 Mattias Gaertner <nc-gaert...@netcologne.de>: > On Sun, 21 Dec 2008 10:26:41 +0200 > "Dave Coventry" <dgcoven...@gmail.com> wrote: > >> Is there any documentation on this? >> would the following: >> >> longv:=LEtoN(@buffer[5]); > > longv:=LEtoN(PLongint(@buffer[5])^); > > >> be the same as: >> >> longv:=buffer[5]; >> longv+=buffer[6] shl 8; >> longv+=buffer[7] shl 16; >> longv+=buffer[8] shl 24; > > > Mattias > _______________________________________________ > Lazarus mailing list > Lazarus@lazarus.freepascal.org > http://www.lazarus.freepascal.org/mailman/listinfo/lazarus > _______________________________________________ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus