lua-users home
lua-l archive

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


2014-10-26 15:28 GMT+00:00 Roberto Ierusalimschy <roberto@inf.puc-rio.br>:
>> 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).

I can't see that there:

http://www.inf.puc-rio.br/~roberto/struct/

Is that an undocumented feature or is there a more recent version elsewhere ?