diff options
Diffstat (limited to 'epan/tvbuff.h')
-rw-r--r-- | epan/tvbuff.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/epan/tvbuff.h b/epan/tvbuff.h index 84c4c9cbe6..91e704a148 100644 --- a/epan/tvbuff.h +++ b/epan/tvbuff.h @@ -208,6 +208,9 @@ extern void tvb_set_free_cb(tvbuff_t*, tvbuff_free_cb_t); * the tvbuff routines knowledgable of this fact. */ extern void tvb_set_child_real_data_tvbuff(tvbuff_t* parent, tvbuff_t* child); +extern tvbuff_t* tvb_new_child_real_data(tvbuff_t* parent, const guint8* data, guint length, + gint reported_length); + /**Sets parameters for TVBUFF_REAL_DATA. Can throw ReportedBoundsError. */ extern void tvb_set_real_data(tvbuff_t*, const guint8* data, guint length, gint reported_length); @@ -635,6 +638,13 @@ extern gint tvb_find_tvb(tvbuff_t *haystack_tvb, tvbuff_t *needle_tvb, */ extern tvbuff_t* tvb_uncompress(tvbuff_t *tvb, int offset, int comprlen); +/** + * Uncompresses a zlib compressed packet inside a tvbuff at offset with + * length comprlen. Returns an uncompressed tvbuffer attached to tvb if uncompression + * succeeded or NULL if uncompression failed. + */ +extern tvbuff_t* tvb_child_uncompress(tvbuff_t *parent, tvbuff_t *tvb, int offset, int comprlen); + /************** END OF ACCESSORS ****************/ #endif /* __TVBUFF_H__ */ |