[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.3.0 (beta) now available
- From: Roberto Ierusalimschy <roberto@...>
- Date: Sun, 26 Oct 2014 13:28:24 -0200
> I see the < and > modifiers in the packing functions to change
> endianness. But AFAICT there is no way to revert to native endianess
> in the middle of a format. I understand it's a very specific use case
> that would mix native endianness and some or both fixed endianness in
> the same struct. But for the sake of completeness it might be nice to
> have some way to reset any configuration to the default. For example
> you could use the pipe/vertical bar character that's not in use at the
> moment.
It could be '=' (as it is in the struct library).
> Finally there is an alignment/padding feature in this new pack/unpack
> code. But the padding value used when packing is not specified. Being
> able to configure the value would be a bit too much, but I think you
> should at least define the value you use (if it's currently undefined)
> and document it.
It is 0. We will document that.
-- Roberto