lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


>Would anyone happen to have modified lhf's lpack library to work with
>numbers that are in stored with endianness opposite of the native system?

I've updated lpack to handle this by adding three new codes:
- After seeing <, all numbers are packed/unpacked in little endian order
- After seeing >, all numbers are packed/unpacked in big endian order
- After seeing =, all numbers are packed/unpacked in native endian order

Get lpack at the usual place:
	http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/

I hope it helps. Enjoy.
--lhf