Re: FFI and endian conversion

  • From: Tony Finch <dot@xxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Wed, 25 Jul 2012 23:32:50 +0100

Luke Gorrie <lukego@xxxxxxxxx> wrote:

> I'm using LuaJIT's FFI to access things like ethernet frames as if they
> were C structures, and I'm wondering what the best way to take care of
> endian conversion is.

f.anthony.n.finch  <dot@xxxxxxxx>
Northwest Rockall: Southwesterly 3 or 4, increasing 5 or 6 later. Moderate.
Fair then rain. Moderate or good.

Other related posts: