Document and export:
authorAnders Broman <anders.broman@ericsson.com>
Wed, 12 Jan 2011 07:25:34 +0000 (07:25 -0000)
committerAnders Broman <anders.broman@ericsson.com>
Wed, 12 Jan 2011 07:25:34 +0000 (07:25 -0000)
tvb_bcd_dig_to_ep_str();

svn path=/trunk/; revision=35499

doc/README.developer
epan/libwireshark.def

index 56e3424466fce74a3aadec3c5d85c5d3c8e889d7..b8956c82b85556dccea51ead638fb1d7a62c1749 100644 (file)
@@ -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);
index 0aa0202a6936fdcc2566ce6ca025395c5f04a79c..f29e0dc3d967462b6f97c5cd89ddd7b50144e041 100644 (file)
@@ -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