aboutsummaryrefslogtreecommitdiffstats
path: root/doc/README.dissector
diff options
context:
space:
mode:
authorMichal Labedzki <michal.labedzki@tieto.com>2015-02-09 08:56:28 +0100
committerMichal Labedzki <michal.labedzki@tieto.com>2015-02-12 09:22:55 +0000
commit707522396c0502b7ac176fc59058a2cb72813f3a (patch)
treeca882f49840fa569ded1455488d4bbe037b94dc6 /doc/README.dissector
parent4359cb8478ebe615bfb7e6944e96f6cb291512e4 (diff)
Little tuning of proto_tree_add_bytes_with_length
Change name from proto_tree_add_new_bytes to proto_tree_add_bytes_with_length and other tweaks pointed by Peter Wu. Change-Id: I6058c28a74a154e2882e4eb04558bedcede6f508 Reviewed-on: https://code.wireshark.org/review/7039 Reviewed-by: Michal Labedzki <michal.labedzki@tieto.com>
Diffstat (limited to 'doc/README.dissector')
-rw-r--r--doc/README.dissector8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/README.dissector b/doc/README.dissector
index 61384b5df4..ff0d5480b1 100644
--- a/doc/README.dissector
+++ b/doc/README.dissector
@@ -1130,6 +1130,9 @@ protocol or field labels to the proto_tree:
start_ptr, format, ...);
proto_item *
+ proto_tree_add_bytes_with_length(tree, id, tvb, start, tvb_length, start_ptr, ptr_length);
+
+ proto_item *
proto_tree_add_time(tree, id, tvb, start, length, value_ptr);
proto_item *
@@ -1583,6 +1586,11 @@ any more.
For proto_tree_add_bytes(), the 'value_ptr' argument is a pointer to a
sequence of bytes.
+
+proto_tree_add_bytes_with_length() is similar to proto_tree_add_bytes,
+except that the length is not derived from the tvb length. Instead,
+the displayed data size is controlled by 'ptr_length'.
+
For proto_tree_add_bytes_format() and proto_tree_add_bytes_format_value(), the
'value_ptr' argument is a pointer to a sequence of bytes or NULL if the bytes
should be taken from the given TVB using the given offset and length.