[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Using unsigned shorts
- From: Javier Guerra Giraldez <javier@...>
- Date: Wed, 21 Nov 2012 16:08:12 -0500
On Wed, Nov 21, 2012 at 3:42 PM, Jay Carlson <nop@nop.com> wrote:
>> x = (string.byte(s, 1) * 256) + string.byte(s, 2)
>
> I find it comforting somebody else still thinks big-endian.
it's the only sane way ;-)
besides, it's the standard "net order", or at least it was until the
"use text protocols!" vogue made talk of byte order obscene...
--
Javier