aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/README.developer9
-rw-r--r--epan/libwireshark.def1
2 files changed, 10 insertions, 0 deletions
diff --git a/doc/README.developer b/doc/README.developer
index 56e3424466..b8956c82b8 100644
--- a/doc/README.developer
+++ b/doc/README.developer
@@ -1334,6 +1334,15 @@ gchar *tvb_bytes_to_str_punct(tvbuff_t *tvb, gint offset, gint len, gchar punct)
This function is similar to tvb_bytes_to_str(...) except that 'punct' is inserted
between the hex representation of each byte.
+gchar *tvb_bcd_dig_to_ep_str(tvbuff_t *tvb, const gint offset, const gint len, dgt_set_t *dgt, gboolean skip_first);
+
+Given a tvbuff, an offset into the tvbuff, and a length that starts
+at that offset (which may be -1 for "all the way to the end of the
+tvbuff"), fetch BCD encoded digits from a tvbuff starting from either
+the low or high half byte, formating the digits according to an input digit set,
+if NUll a default digit set of 0-9 returning "?" for overdecadic digits will be used.
+A pointer to the EP allocated string will be returned.
+Note: a tvbuff content of 0xf is considered a 'filler' and will end the conversion.
Copying memory:
guint8* tvb_memcpy(tvbuff_t*, guint8* target, gint offset, gint length);
diff --git a/epan/libwireshark.def b/epan/libwireshark.def
index 0aa0202a69..f29e0dc3d9 100644
--- a/epan/libwireshark.def
+++ b/epan/libwireshark.def
@@ -1025,6 +1025,7 @@ timestamp_set_type
timestamp_set_seconds_type
trans2_cmd_vals_ext DATA
tree_is_expanded DATA
+tvb_bcd_dig_to_ep_str
tvb_bytes_exist
tvb_bytes_to_str
tvb_bytes_to_str_punct