Wireshark-dev: Re: [Wireshark-dev] RFC: sorted value_string + bsearch
From: Anders Broman <a.broman@xxxxxxxxx>
Date: Tue, 27 Apr 2010 08:15:35 +0200
Hi,
I like it!
Can you provide an example use of the new value_string_ext as well?
Regards
Anders

Jakub Zawadzki skrev 2010-04-26 21:13:
On Fri, Apr 23, 2010 at 11:32:16PM +0200, Anders Broman wrote:
  
like a full table starting at a number ( like 500 - 1000 ->value  match index minus 
offset).
    
Uhm, sounds complicated :)

Maybe we can initialize match_type in proto_register_field_init()
so developer don't need to care if it's sorted or no...

We can do it also during first use of match_strval_fast() (which might be
better option)

Attaching patch, btw. I changed _fast to _ext.
  
___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe