summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2015-11-25 21:40:43 -0500
committerMichael Mann <mmann78@netscape.net>2015-11-26 11:59:59 +0000
commit4dc090ed9c0bcd19e2779d1d7d70db8c50262050 (patch)
tree1808c42f83b4e39c144f84782244cb861cd39915
parent44e5946ea523e15886c811ca7b320cce2c576704 (diff)
downloadwireshark-4dc090ed9c0bcd19e2779d1d7d70db8c50262050.tar.gz
Document tvb_get_guintXXX and tvb_get_ieee_XXX
Change-Id: I498c0ca39befa0c0117ee78c23714bf7af193ce9 Reviewed-on: https://code.wireshark.org/review/12164 Petri-Dish: Michael Mann <mmann78@netscape.net> Reviewed-by: Anders Broman <a.broman58@gmail.com> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> (cherry picked from commit 2cf37ea0a09771e59353368ad187e9ad647e3d90) Reviewed-on: https://code.wireshark.org/review/12178 Reviewed-by: Michael Mann <mmann78@netscape.net>
-rw-r--r--doc/README.dissector27
1 files changed, 27 insertions, 0 deletions
diff --git a/doc/README.dissector b/doc/README.dissector
index 55351f696d..0adf1ca951 100644
--- a/doc/README.dissector
+++ b/doc/README.dissector
@@ -240,6 +240,33 @@ double-precision IEEE floating-point numbers:
gfloat tvb_get_letohieee_float(tvbuff_t *tvb, const gint offset);
gdouble tvb_get_letohieee_double(tvbuff_t *tvb, const gint offset);
+Encoding-to_host-order accessors for 16-bit integers (guint16),
+24-bit integers, 32-bit integers (guint32), 40-bit integers, 48-bit
+integers, 56-bit integers, and 64-bit integers (guint64):
+
+guint16 tvb_get_guint16(tvbuff_t *tvb, const gint offset, const guint encoding);
+guint32 tvb_get_guint24(tvbuff_t *tvb, const gint offset, const guint encoding);
+guint32 tvb_get_guint32(tvbuff_t *tvb, const gint offset, const guint encoding);
+guint64 tvb_get_guint40(tvbuff_t *tvb, const gint offset, const guint encoding);
+gint64 tvb_get_gint40(tvbuff_t *tvb, const gint offset, const guint encoding);
+guint64 tvb_get_guint48(tvbuff_t *tvb, const gint offset, const guint encoding);
+gint64 tvb_get_gint48(tvbuff_t *tvb, const gint offset, const guint encoding);
+guint64 tvb_get_guint56(tvbuff_t *tvb, const gint offset, const guint encoding);
+gint64 tvb_get_gint56(tvbuff_t *tvb, const gint offset, const guint encoding);
+guint64 tvb_get_guint64(tvbuff_t *tvb, const gint offset, const guint encoding);
+
+"encoding" should be ENC_BIG_ENDIAN for Network-to-host-order and ENC_LITTLE_ENDIAN
+for Little-Endian-to-host-order.
+
+Endian-to-host-order accessors for single-precision and
+double-precision IEEE floating-point numbers:
+
+gfloat tvb_get_ieee_float(tvbuff_t *tvb, const gint offset, const guint encoding);
+gdouble tvb_get_ieee_double(tvbuff_t *tvb, const gint offset, const guint encoding);
+
+Just as above, "encoding" should be ENC_BIG_ENDIAN for Network-to-host-order and
+ENC_LITTLE_ENDIAN for Little-Endian-to-host-order.
+
Accessors for IPv4 and IPv6 addresses:
guint32 tvb_get_ipv4(tvbuff_t *tvb, const gint offset);