/* XXX - should map surrogate errors to REPLACEMENT CHARACTERs (0xFFFD). XXX - should map code points > 10FFFF to REPLACEMENT CHARACTERs. XXX - if there are an odd number of bytes, should put a REPLACEMENT CHARACTER at the end.  */
static guint8* tvb_get_utf_16_string(wmem_allocator_t *scope, tvbuff_t *tvb, const gint offset, gint length, const guint encoding)
/* XXX - should map surrogate errors to REPLACEMENT CHARACTERs (0xFFFD). XXX - should map code points > 10FFFF to REPLACEMENT CHARACTERs. XXX - if there are an odd number of bytes, should put a REPLACEMENT CHARACTER at the end.  */
static guint8* tvb_get_utf_16_string(wmem_allocator_t *scope, tvbuff_t *tvb, const gint offset, gint length, const guint encoding)
{
	const guint8  *ptr;
	ptr = ensure_contiguous(tvb, offset, length);
	return get_utf_16_string(scope, ptr, length, encoding);
}