Re: [fpc-pascal] Switch Endian

2009-08-21 Thread Jonas Maebe
On 21 Aug 2009, at 09:30, luca_mangane...@comune.trento.it wrote: there's a pascal function to switch endian (for a 32 bit integer)? Note that it should work on 64 bit systems... Use SwapEndian(longint(value)). The extra longint type cast is to ensure that you call the 32 bit version, reg

Re: [fpc-pascal] Switch Endian

2009-08-21 Thread Mattias Gärtner
Zitat von luca_mangane...@comune.trento.it: Hi, there's a pascal function to switch endian (for a 32 bit integer)? Note that it should work on 64 bit systems... There are many in the system unit: SwapEndian leton beton Mattias ___ fpc-pascal mai

[fpc-pascal] Switch Endian

2009-08-21 Thread luca_manganelli
Hi, there's a pascal function to switch endian (for a 32 bit integer)? Note that it should work on 64 bit systems... ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal