On Mon, Dec 15, 2014 at 08:23:47AM +0100, Michal Labedzki wrote:

> Personally I prefer ENC_NA for single-byte.

Me too.  How about changing proto_tree_add_item() so that the endian 
field is optional?

Single byte:

  proto_tree_add_item(tree, proto_test, tvb, 0, 1);

Multi-byte:

  proto_tree_add_item(tree, proto_test, tvb, 1, 2, ENC_BIG_ENDIAN);

___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@wireshark.org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe

Reply via email to