Introduce, and start using, tvb_get_const_stringz(). This function returns a
authormorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 12 Jan 2011 02:25:08 +0000 (02:25 +0000)
committermorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 12 Jan 2011 02:25:08 +0000 (02:25 +0000)
commit1bb08810cf7617f4e3bf73edb091990dc93f5fbf
treeccf27b3ad65b72ef7318a4bcd3f1d78bb663b019
parentb80b992d37eae64d6fe839374e80389d4cea0a6d
Introduce, and start using, tvb_get_const_stringz().  This function returns a
pointer to a NULL-terminated string in the TVB.  It is no safer than dissectors
which call tvb_get_strsize() and then tvb_get_ptr() but it makes it clear that
this usage of tvb_get_ptr() is safe.

This function is slightly more efficient than tvb_get_ephemeral_stringz()--but
only as long as we're not using composite TVBs.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35493 f5534014-38df-0310-8fa8-9805f1628bb7
doc/README.developer
epan/dissectors/packet-catapult-dct2000.c
epan/libwireshark.def
epan/tvbuff.c
epan/tvbuff.h