Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] [Wireshark-users] bit operations are missing from lua bindin

From: Stig Bjørlykke <stig@xxxxxxxxxxxxx>
Date: Fri, 5 Jun 2009 12:20:07 +0200
On Fri, Jun 5, 2009 at 2:00 AM, Sam Roberts <vieuxtech@xxxxxxxxx> wrote:
> If  TvbRange_methods supported a :bitrange(pos, len) method, that
> would mask and shift out a bitrange, and return it as a number, that
> would be great.

Sure, have a look at the attached patch.  Please test and give feedback :)


-- 
Stig Bjørlykke

Attachment: wslua-bitfield.patch
Description: Binary data