diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-08-22 00:31:58 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-08-22 00:31:58 +0000 |
commit | c68f62210fc20890502cb84dbc2ea4321de5b791 (patch) | |
tree | d7311a179eacd5a137e9e874b3bf2d0e15377de6 /doc/README.tvbuff | |
parent | 9dcb077e460619b8ab54810e4fef850a0799bcde (diff) |
Add "tvb_get_ntoh64()" and "tvb_get_letoh64()" routines to fetch 64-bit
integers.
Make FT_INT64 and FT_UINT64 add numerical values, rather than byte-array
values, to the protocol tree, and add routines to add specified 64-bit
integer values to the protocol tree.
Use those routines in the RSVP dissector.
svn path=/trunk/; revision=11796
Diffstat (limited to 'doc/README.tvbuff')
-rw-r--r-- | doc/README.tvbuff | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/doc/README.tvbuff b/doc/README.tvbuff index 5cce7fb925..2aad9d8dcc 100644 --- a/doc/README.tvbuff +++ b/doc/README.tvbuff @@ -115,19 +115,21 @@ Single-byte accessor: guint8 tvb_get_guint8(tvbuff_t*, gint offset); -Network-to-host-order access for shorts (guint16), longs (guint24), and -24-bit ints: +Network-to-host-order access for 16-bit integers (guint16), 32-bit +integers (guint32), 24-bit integers, and 64-bit integers (guint64): guint16 tvb_get_ntohs(tvbuff_t*, gint offset); guint32 tvb_get_ntohl(tvbuff_t*, gint offset); guint32 tvb_get_ntoh24(tvbuff_t*, gint offset); +guint64 tvb_get_ntoh64(tvbuff_t*, gint offset); -Little-Endian-to-host-order access for shorts (guint16), longs (guint24), and -24-bit ints: +Little-Endian-to-host-order access for 16-bit integers (guint16), 32-bit +integers (guint32), 24-bit integers, and 64-bit integers (guint64): guint16 tvb_get_letohs(tvbuff_t*, gint offset); guint32 tvb_get_letohl(tvbuff_t*, gint offset); guint32 tvb_get_letoh24(tvbuff_t*, gint offset); +guint64 tvb_get_letoh64(tvbuff_t*, gint offset); Copying memory: |