Ethereal-dev: Re: [ethereal-dev] tvbuffs for TV Buffs

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

Date: 7 Jun 2000 09:05:46 -0700
On Wed, 07 June 2000, Gilbert Ramirez wrote:
> One aspect is changing the code
> to use the tvbuff accessor methods to retrieve data. This is an easy change.

Note also that if the dissector is retrieving data and handing it to one of the "proto_tree_add" routines that takes a filterable field index as an argument, and not actually looking at the value, calling "proto_tree_add_item()" or "proto_tree_add_item_hidden()" now lets you avoid retrieving the data in the dissector - "proto_tree_add_item()" and "proto_tree_add_item_hidden()" will retrieve the data for you.