/* As long as we aren't using composite TVBs, this saves the cycles used (often unnecessariliy) in allocating a buffer and copying the string into it. (If we do start using composite TVBs, we may want to replace this function with the _ephemeral version.)  */
const guint8* tvb_get_const_stringz(tvbuff_t *tvb, const gint offset, gint *lengthp)
/* As long as we aren't using composite TVBs, this saves the cycles used (often unnecessariliy) in allocating a buffer and copying the string into it. (If we do start using composite TVBs, we may want to replace this function with the _ephemeral version.)  */
const guint8* tvb_get_const_stringz(tvbuff_t *tvb, const gint offset, gint *lengthp)
{
	guint         size;
	const guint8 *strptr;
	size   = tvb_strsize(tvb, offset);
	strptr = ensure_contiguous(tvb, offset, size);
	if (lengthp)
		*lengthp = size;
	return strptr;
}