/* Given a wmem scope, a tvbuff, an offset, and a length, treat the string of bytes referred to by the tvbuff, offset, and length as a string encoded in EBCDIC using one octet per character, and return a pointer to a UTF-8 string, allocated using the wmem scope.  */
static guint8* tvb_get_ebcdic_string(wmem_allocator_t *scope, tvbuff_t *tvb, gint offset, gint length)
/* Given a wmem scope, a tvbuff, an offset, and a length, treat the string of bytes referred to by the tvbuff, offset, and length as a string encoded in EBCDIC using one octet per character, and return a pointer to a UTF-8 string, allocated using the wmem scope.  */
static guint8* tvb_get_ebcdic_string(wmem_allocator_t *scope, tvbuff_t *tvb, gint offset, gint length)
{
	const guint8  *ptr;
	ptr = ensure_contiguous(tvb, offset, length);
	return get_ebcdic_string(scope, ptr, length);
}