Wireshark-dev: Re: [Wireshark-dev] [Wireshark-users] bit operations are missingfrom lua binding
From: Sam Roberts <vieuxtech@xxxxxxxxx>
Date: Fri, 5 Jun 2009 11:14:57 -0700
2009/6/5 Stig Bjørlykke <stig@xxxxxxxxxxxxx>:
> On Fri, Jun 5, 2009 at 1:23 PM, Anders Broman
> <anders.broman@xxxxxxxxxxxx> wrote:
>> Couldn't: tvb_get_bits8(), tvb_get_bits16(), tvb_get_bits32(), tvb_get_bits64()
>> Be used instead?
>
> Good idea, then we can use any TvbRange to fetch a bitfield from.  New
> patch attached.

I was surprised that for 0x31, bit 0 is not 1, it seems an odd endian
choice for bits, but since its part of the underlying tvb API, so it
goes.

Other than, it works well, thanks.

Sam