They have the endianess of the machine where you're dumping them.
luaU_dump stores a byte that indicates the machine's endianess along
with the bytecodes, so luaU_undump can adjust, if the endianess of the
machine where you are reading the bytecodes is different. Check
ldump.c and lundump.c if you are curious.
--
Fabio
On Mon, 1 Nov 2004 10:30:40 -0800, Ando Sonenblick <ando@spritec.com>
wrote:
gang,
Does lua's byte code have an endianness? Or is it really all in 8-bit
bytes?
Thx,
ando
Ando Sonenblick
SpriTec Software
ando@spritec.com