24#include <ws_symbol_export.h>
25#include <ws_attributes.h>
111 uint32_t bit_offset, int32_t no_of_bits);
117 uint32_t bit_offset, int32_t no_of_bits);
202 const int backing_offset,
const int backing_length,
216 const int backing_offset);
239WS_DLL_PUBLIC
unsigned tvb_captured_length(
const tvbuff_t *tvb);
253WS_DLL_PUBLIC
bool tvb_bytes_exist(
const tvbuff_t *tvb,
const int offset,
260 const int offset,
const uint64_t
length);
265 const int offset,
const int length);
268WS_DLL_PUBLIC
bool tvb_offset_exists(
const tvbuff_t *tvb,
272WS_DLL_PUBLIC
unsigned tvb_reported_length(
const tvbuff_t *tvb);
297WS_DLL_PUBLIC
void tvb_fix_reported_length(
tvbuff_t *tvb);
299WS_DLL_PUBLIC
unsigned tvb_offset_from_real_beginning(
const tvbuff_t *tvb);
302WS_DLL_PUBLIC
int tvb_raw_offset(
tvbuff_t *tvb);
315WS_DLL_PUBLIC uint8_t tvb_get_uint8(
tvbuff_t *tvb,
const int offset);
316WS_DEPRECATED_X(
"Use tvb_get_uint8 instead")
317static inline uint8_t tvb_get_guint8(
tvbuff_t *tvb, const
int offset) {
return tvb_get_uint8(tvb, offset); }
318WS_DLL_PUBLIC int8_t tvb_get_int8(
tvbuff_t *tvb,
const int offset);
319WS_DEPRECATED_X(
"Use tvb_get_int8 instead")
320static inline int8_t tvb_get_gint8(
tvbuff_t *tvb, const
int offset) {
return tvb_get_int8(tvb, offset); }
322WS_DLL_PUBLIC uint16_t tvb_get_ntohs(
tvbuff_t *tvb,
const int offset);
323WS_DLL_PUBLIC int16_t tvb_get_ntohis(
tvbuff_t *tvb,
const int offset);
324WS_DLL_PUBLIC uint32_t tvb_get_ntoh24(
tvbuff_t *tvb,
const int offset);
325WS_DLL_PUBLIC int32_t tvb_get_ntohi24(
tvbuff_t *tvb,
const int offset);
326WS_DLL_PUBLIC uint32_t tvb_get_ntohl(
tvbuff_t *tvb,
const int offset);
327WS_DLL_PUBLIC int32_t tvb_get_ntohil(
tvbuff_t *tvb,
const int offset);
328WS_DLL_PUBLIC uint64_t tvb_get_ntoh40(
tvbuff_t *tvb,
const int offset);
329WS_DLL_PUBLIC int64_t tvb_get_ntohi40(
tvbuff_t *tvb,
const int offset);
330WS_DLL_PUBLIC uint64_t tvb_get_ntoh48(
tvbuff_t *tvb,
const int offset);
331WS_DLL_PUBLIC int64_t tvb_get_ntohi48(
tvbuff_t *tvb,
const int offset);
332WS_DLL_PUBLIC uint64_t tvb_get_ntoh56(
tvbuff_t *tvb,
const int offset);
333WS_DLL_PUBLIC int64_t tvb_get_ntohi56(
tvbuff_t *tvb,
const int offset);
334WS_DLL_PUBLIC uint64_t tvb_get_ntoh64(
tvbuff_t *tvb,
const int offset);
335WS_DLL_PUBLIC int64_t tvb_get_ntohi64(
tvbuff_t *tvb,
const int offset);
336WS_DLL_PUBLIC
float tvb_get_ntohieee_float(
tvbuff_t *tvb,
const int offset);
337WS_DLL_PUBLIC
double tvb_get_ntohieee_double(
tvbuff_t *tvb,
340WS_DLL_PUBLIC uint16_t tvb_get_letohs(
tvbuff_t *tvb,
const int offset);
341WS_DLL_PUBLIC int16_t tvb_get_letohis(
tvbuff_t *tvb,
const int offset);
342WS_DLL_PUBLIC uint32_t tvb_get_letoh24(
tvbuff_t *tvb,
const int offset);
343WS_DLL_PUBLIC int32_t tvb_get_letohi24(
tvbuff_t *tvb,
const int offset);
344WS_DLL_PUBLIC uint32_t tvb_get_letohl(
tvbuff_t *tvb,
const int offset);
345WS_DLL_PUBLIC int32_t tvb_get_letohil(
tvbuff_t *tvb,
const int offset);
346WS_DLL_PUBLIC uint64_t tvb_get_letoh40(
tvbuff_t *tvb,
const int offset);
347WS_DLL_PUBLIC int64_t tvb_get_letohi40(
tvbuff_t *tvb,
const int offset);
348WS_DLL_PUBLIC uint64_t tvb_get_letoh48(
tvbuff_t *tvb,
const int offset);
349WS_DLL_PUBLIC int64_t tvb_get_letohi48(
tvbuff_t *tvb,
const int offset);
350WS_DLL_PUBLIC uint64_t tvb_get_letoh56(
tvbuff_t *tvb,
const int offset);
351WS_DLL_PUBLIC int64_t tvb_get_letohi56(
tvbuff_t *tvb,
const int offset);
352WS_DLL_PUBLIC uint64_t tvb_get_letoh64(
tvbuff_t *tvb,
const int offset);
353WS_DLL_PUBLIC int64_t tvb_get_letohi64(
tvbuff_t *tvb,
const int offset);
354WS_DLL_PUBLIC
float tvb_get_letohieee_float(
tvbuff_t *tvb,
const int offset);
355WS_DLL_PUBLIC
double tvb_get_letohieee_double(
tvbuff_t *tvb,
358WS_DLL_PUBLIC uint16_t tvb_get_uint16(
tvbuff_t *tvb,
const int offset,
const unsigned encoding);
359WS_DEPRECATED_X(
"Use tvb_get_uint16 instead")
360static inline uint16_t tvb_get_guint16(
tvbuff_t *tvb, const
int offset, const
unsigned encoding) {
return tvb_get_uint16(tvb, offset, encoding); }
361WS_DLL_PUBLIC int16_t tvb_get_int16(
tvbuff_t *tvb,
const int offset,
const unsigned encoding);
362WS_DEPRECATED_X(
"Use tvb_get_int16 instead")
363static inline int16_t tvb_get_gint16(
tvbuff_t *tvb, const
int offset, const
unsigned encoding) {
return tvb_get_int16(tvb, offset, encoding); }
364WS_DLL_PUBLIC uint32_t tvb_get_uint24(
tvbuff_t *tvb,
const int offset,
const unsigned encoding);
365WS_DEPRECATED_X(
"Use tvb_get_uint24 instead")
366static inline uint32_t tvb_get_guint24(
tvbuff_t *tvb, const
int offset, const
unsigned encoding) {
return tvb_get_uint24(tvb, offset, encoding); }
367WS_DLL_PUBLIC int32_t tvb_get_int24(
tvbuff_t *tvb,
const int offset,
const unsigned encoding);
368WS_DEPRECATED_X(
"Use tvb_get_int24 instead")
369static inline int32_t tvb_get_gint24(
tvbuff_t *tvb, const
int offset, const
unsigned encoding) {
return tvb_get_int24(tvb, offset, encoding); }
370WS_DLL_PUBLIC uint32_t tvb_get_uint32(
tvbuff_t *tvb,
const int offset,
const unsigned encoding);
371WS_DEPRECATED_X(
"Use tvb_get_uint32 instead")
372static inline uint32_t tvb_get_guint32(
tvbuff_t *tvb, const
int offset, const
unsigned encoding) {
return tvb_get_uint32(tvb, offset, encoding); }
373WS_DLL_PUBLIC int32_t tvb_get_int32(
tvbuff_t *tvb,
const int offset,
const unsigned encoding);
374WS_DEPRECATED_X(
"Use tvb_get_int32 instead")
375static inline int32_t tvb_get_gint32(
tvbuff_t *tvb, const
int offset, const
unsigned encoding) {
return tvb_get_int32(tvb, offset, encoding); }
376WS_DLL_PUBLIC uint64_t tvb_get_uint40(
tvbuff_t *tvb,
const int offset,
const unsigned encoding);
377WS_DEPRECATED_X(
"Use tvb_get_uint40 instead")
378static inline uint64_t tvb_get_guint40(
tvbuff_t *tvb, const
int offset, const
unsigned encoding) {
return tvb_get_uint40(tvb, offset, encoding); }
379WS_DLL_PUBLIC int64_t tvb_get_int40(
tvbuff_t *tvb,
const int offset,
const unsigned encoding);
380WS_DEPRECATED_X(
"Use tvb_get_int40 instead")
381static inline int64_t tvb_get_gint40(
tvbuff_t *tvb, const
int offset, const
unsigned encoding) {
return tvb_get_int40(tvb, offset, encoding); }
382WS_DLL_PUBLIC uint64_t tvb_get_uint48(
tvbuff_t *tvb,
const int offset,
const unsigned encoding);
383WS_DEPRECATED_X(
"Use tvb_get_uint48 instead")
384static inline uint64_t tvb_get_guint48(
tvbuff_t *tvb, const
int offset, const
unsigned encoding) {
return tvb_get_uint48(tvb, offset, encoding); }
385WS_DLL_PUBLIC int64_t tvb_get_int48(
tvbuff_t *tvb,
const int offset,
const unsigned encoding);
386WS_DEPRECATED_X(
"Use tvb_get_int48 instead")
387static inline int64_t tvb_get_gint48(
tvbuff_t *tvb, const
int offset, const
unsigned encoding) {
return tvb_get_int48(tvb, offset, encoding); }
388WS_DLL_PUBLIC uint64_t tvb_get_uint56(
tvbuff_t *tvb,
const int offset,
const unsigned encoding);
389WS_DEPRECATED_X(
"Use tvb_get_uint56 instead")
390static inline uint64_t tvb_get_guint56(
tvbuff_t *tvb, const
int offset, const
unsigned encoding) {
return tvb_get_uint56(tvb, offset, encoding); }
391WS_DLL_PUBLIC int64_t tvb_get_int56(
tvbuff_t *tvb,
const int offset,
const unsigned encoding);
392WS_DEPRECATED_X(
"Use tvb_get_int56 instead")
393static inline int64_t tvb_get_gint56(
tvbuff_t *tvb, const
int offset, const
unsigned encoding) {
return tvb_get_int56(tvb, offset, encoding); }
394WS_DLL_PUBLIC uint64_t tvb_get_uint64(
tvbuff_t *tvb,
const int offset,
const unsigned encoding);
395WS_DEPRECATED_X(
"Use tvb_get_uint64 instead")
396static inline uint64_t tvb_get_guint64(
tvbuff_t *tvb, const
int offset, const
unsigned encoding) {
return tvb_get_uint64(tvb, offset, encoding); }
397WS_DLL_PUBLIC int64_t tvb_get_int64(
tvbuff_t *tvb,
const int offset,
const unsigned encoding);
398WS_DEPRECATED_X(
"Use tvb_get_int64 instead")
399static inline int64_t tvb_get_gint64(
tvbuff_t *tvb, const
int offset, const
unsigned encoding) {
return tvb_get_int64(tvb, offset, encoding); }
400WS_DLL_PUBLIC
float tvb_get_ieee_float(
tvbuff_t *tvb,
const int offset,
const unsigned encoding);
401WS_DLL_PUBLIC
double tvb_get_ieee_double(
tvbuff_t *tvb,
const int offset,
const unsigned encoding);
410#if G_BYTE_ORDER == G_LITTLE_ENDIAN
411#define tvb_get_h_uint16 tvb_get_letohs
412#define tvb_get_h_uint32 tvb_get_letohl
413#elif G_BYTE_ORDER == G_BIG_ENDIAN
414#define tvb_get_h_uint16 tvb_get_ntohs
415#define tvb_get_h_uint32 tvb_get_ntohl
417#error "Unsupported byte order"
449 const unsigned encoding,
nstime_t* ns,
int *endoff);
460GByteArray* tvb_get_string_bytes(
tvbuff_t *tvb,
const int offset,
const int length,
461 const unsigned encoding, GByteArray* bytes,
int *endoff);
470WS_DLL_PUBLIC
void tvb_get_ipv6(
tvbuff_t *tvb,
const int offset,
484 ws_in4_addr *addr, uint32_t prefix_len);
500WS_DLL_PUBLIC
void tvb_get_ntohguid(
tvbuff_t *tvb,
const int offset,
503WS_DLL_PUBLIC
void tvb_get_letohguid(
tvbuff_t *tvb,
const int offset,
506WS_DLL_PUBLIC
void tvb_get_guid(
tvbuff_t *tvb,
const int offset,
507 e_guid_t *guid,
const unsigned encoding);
511 const int offset,
size_t length,
size_t *data_length,
const unsigned encoding);
521WS_DLL_PUBLIC uint8_t tvb_get_bits8(
tvbuff_t *tvb,
unsigned bit_offset,
522 const int no_of_bits);
525WS_DLL_PUBLIC uint16_t tvb_get_bits16(
tvbuff_t *tvb,
unsigned bit_offset,
526 const int no_of_bits,
const unsigned encoding);
529WS_DLL_PUBLIC uint32_t tvb_get_bits32(
tvbuff_t *tvb,
unsigned bit_offset,
530 const int no_of_bits,
const unsigned encoding);
533WS_DLL_PUBLIC uint64_t tvb_get_bits64(
tvbuff_t *tvb,
unsigned bit_offset,
534 const int no_of_bits,
const unsigned encoding);
541 const int no_of_bits,
const unsigned encoding);
568 const int offset,
size_t length);
606 const int maxlength,
const uint8_t needle);
608WS_DEPRECATED_X(
"Use tvb_find_uint8 instead")
609static inline
int tvb_find_guint8(
tvbuff_t* tvb, const
int offset,
610 const
int maxlength, const uint8_t needle) {
return tvb_find_uint8(tvb, offset, maxlength, needle); }
614 const int maxlength,
const uint16_t needle);
616WS_DEPRECATED_X(
"Use tvb_find_uint16 instead")
617static inline
int tvb_find_guint16(
tvbuff_t* tvb, const
int offset,
618 const
int maxlength, const uint16_t needle) {
632WS_DEPRECATED_X(
"Use tvb_ws_mempbrk_pattern_uint8 instead")
633static inline
int tvb_ws_mempbrk_pattern_guint8(
tvbuff_t* tvb, const
int offset,
634 const
int maxlength, const
ws_mempbrk_pattern* pattern,
unsigned char* found_needle) {
658 const unsigned maxlength);
708 tvbuff_t *tvb,
const int offset,
const int length,
const unsigned encoding);
732 tvbuff_t *tvb,
const int bit_offset,
int no_of_chars);
802 tvbuff_t *tvb,
const int bit_offset,
int no_of_chars);
825 tvbuff_t *tvb,
const int offset,
const int length,
const unsigned encoding);
854 tvbuff_t *tvb,
const int offset,
int *lengthp,
const unsigned encoding);
881WS_DEPRECATED_X(
"Use APIs that return a valid UTF-8 string instead")
883 const
int offset,
int *lengthp);
895 const
unsigned bufsize, uint8_t *
buffer);
903WS_DLL_PUBLIC
int tvb_get_raw_bytes_as_string(
tvbuff_t *tvb, const
int offset,
char *
buffer,
size_t bufsize);
951 int *next_offset, const
bool desegment);
972 int len,
int *next_offset);
992 const
int maxlength);
994WS_DLL_PUBLIC
int tvb_skip_wsp_return(
tvbuff_t *tvb, const
int offset);
996int tvb_skip_uint8(
tvbuff_t *tvb,
int offset, const
int maxlength, const uint8_t ch);
997WS_DEPRECATED_X("Use tvb_skip_uint8 instead")
998static inline
int tvb_skip_guint8(
tvbuff_t *tvb,
int offset, const
int maxlength, const uint8_t ch) {
999 return tvb_skip_uint8(tvb, offset, maxlength, ch);
1027 const char *str,
const size_t size);
1034 const char *str,
const size_t size);
1041 const uint8_t *str,
size_t size);
1049 const int len,
const char punct);
1056 const int offset,
const int len);
1070 const unsigned char out[16];
1109 const int offset,
int len,
const dgt_set_t *dgt,
1110 bool skip_first,
bool odd,
bool bigendian);
1117 const int haystack_offset);
1121WS_DEPRECATED_X(
"Use tvb_uncompress_zlib instead")
1139 const
int offset,
int comprlen);
1147 const
int offset,
int comprlen);
1169 const
int offset,
int comprlen);
1187 const
int offset,
int comprlen);
1202 const
int offset,
int comprlen);
1211 tvbuff_t *tvb, const
int offset,
int comprlen);
1226 const
int offset,
int comprlen);
1235 tvbuff_t *tvb, const
int offset,
int comprlen);
1250 const
int offset,
int comprlen);
1259 tvbuff_t *tvb, const
int offset,
int comprlen);
1272 const
int offset,
int comprlen);
1281 tvbuff_t *tvb, const
int offset,
int comprlen);
1308extern
tvbuff_t* base64uri_tvb_to_new_tvb(
tvbuff_t* parent,
int offset,
int length);
1313 tvbuff_t *tvb, const
int offset, const
int len);
1316 int offset,
int length);
1331WS_DLL_PUBLIC
unsigned tvb_get_varint(
tvbuff_t *tvb,
unsigned offset,
unsigned maxlen, uint64_t *value, const
unsigned encoding);
WS_DLL_PUBLIC bool tvb_ascii_isprint(tvbuff_t *tvb, const int offset, const int length)
Definition tvbuff.c:4060
WS_DLL_PUBLIC bool tvb_ascii_isdigit(tvbuff_t *tvb, const int offset, const int length)
Definition tvbuff.c:4091
WS_DLL_PUBLIC int tvb_find_uint16(tvbuff_t *tvb, const int offset, const int maxlength, const uint16_t needle)
Definition tvbuff.c:2434
WS_DLL_PUBLIC int tvb_find_tvb(tvbuff_t *haystack_tvb, tvbuff_t *needle_tvb, const int haystack_offset)
Definition tvbuff.c:4678
WS_DLL_PUBLIC int tvb_strnlen(tvbuff_t *tvb, const int offset, const unsigned maxlength)
Definition tvbuff.c:2610
WS_DLL_PUBLIC tvbuff_t * tvb_child_uncompress_brotli(tvbuff_t *parent, tvbuff_t *tvb, const int offset, int comprlen)
Definition tvbuff_brotli.c:173
int tvb_get_ipv4_addr_with_prefix_len(tvbuff_t *tvb, int offset, ws_in4_addr *addr, uint32_t prefix_len)
Definition tvbuff.c:2065
WS_DLL_PUBLIC void tvb_set_fragment(tvbuff_t *tvb)
Definition tvbuff.c:4716
WS_DLL_PUBLIC int tvb_get_token_len(tvbuff_t *tvb, const int offset, int len, int *next_offset, const bool desegment)
Definition tvbuff.c:4472
WS_DLL_PUBLIC char * tvb_get_etsi_ts_102_221_annex_a_string(wmem_allocator_t *scope, tvbuff_t *tvb, const int offset, int length)
Definition tvbuff.c:3027
WS_DLL_PUBLIC int tvb_strneql(tvbuff_t *tvb, const int offset, const char *str, const size_t size)
Definition tvbuff.c:2638
WS_DLL_PUBLIC tvbuff_t * tvb_new_octet_aligned(tvbuff_t *tvb, uint32_t bit_offset, int32_t no_of_bits)
Definition tvbuff.c:366
WS_DLL_PUBLIC void tvb_free(tvbuff_t *tvb)
Definition tvbuff.c:109
WS_DLL_PUBLIC char * tvb_get_ascii_7bits_string(wmem_allocator_t *scope, tvbuff_t *tvb, const int bit_offset, int no_of_chars)
Definition tvbuff.c:3039
WS_DLL_PUBLIC tvbuff_t * tvb_new_subset_length(tvbuff_t *backing, const int backing_offset, const int reported_length)
Definition tvbuff_subset.c:191
WS_DLL_PUBLIC tvbuff_t * tvb_uncompress_lz77huff(tvbuff_t *tvb, const int offset, int comprlen)
Definition tvbuff_lz77huff.c:358
WS_DLL_PUBLIC unsigned tvb_ensure_captured_length_remaining(const tvbuff_t *tvb, const int offset)
Definition tvbuff.c:573
WS_DLL_PUBLIC int tvb_get_raw_bytes_as_stringz(tvbuff_t *tvb, const int offset, const unsigned bufsize, uint8_t *buffer)
Definition tvbuff.c:4010
WS_DLL_PUBLIC char * tvb_format_text_wsp(wmem_allocator_t *allocator, tvbuff_t *tvb, const int offset, const int size)
Definition tvbuff.c:2734
WS_DLL_PUBLIC uint8_t * tvb_get_stringz_enc(wmem_allocator_t *scope, tvbuff_t *tvb, const int offset, int *lengthp, const unsigned encoding)
Definition tvbuff.c:3726
WS_DLL_PUBLIC char * tvb_get_bcd_string(wmem_allocator_t *scope, tvbuff_t *tvb, const int offset, int len, const dgt_set_t *dgt, bool skip_first, bool odd, bool bigendian)
Definition tvbuff.c:4565
WS_DLL_PUBLIC tvbuff_t * tvb_child_uncompress_lznt1(tvbuff_t *parent, tvbuff_t *tvb, const int offset, int comprlen)
Definition tvbuff_lznt1.c:148
WS_DLL_PUBLIC uint8_t * tvb_get_stringzpad(wmem_allocator_t *scope, tvbuff_t *tvb, const int offset, const int length, const unsigned encoding)
Definition tvbuff.c:3495
WS_DLL_PUBLIC unsigned tvb_unicode_strsize(tvbuff_t *tvb, const int offset)
Definition tvbuff.c:2589
WS_DLL_PUBLIC void tvb_free_chain(tvbuff_t *tvb)
Definition tvbuff.c:115
WS_DLL_PUBLIC uint8_t * tvb_get_string_enc(wmem_allocator_t *scope, tvbuff_t *tvb, const int offset, const int length, const unsigned encoding)
Definition tvbuff.c:3229
WS_DLL_PUBLIC const uint8_t * tvb_get_const_stringz(tvbuff_t *tvb, const int offset, int *lengthp)
Definition tvbuff.c:3594
WS_DLL_PUBLIC char * tvb_bytes_to_str_punct(wmem_allocator_t *scope, tvbuff_t *tvb, const int offset, const int len, const char punct)
Definition tvbuff.c:4543
WS_DLL_PUBLIC tvbuff_t * tvb_child_uncompress_zstd(tvbuff_t *parent, tvbuff_t *tvb, const int offset, int comprlen)
Definition tvbuff_zstd.c:101
WS_DLL_PUBLIC void tvb_set_child_real_data_tvbuff(tvbuff_t *parent, tvbuff_t *child)
Definition tvbuff_real.c:96
void(* tvbuff_free_cb_t)(void *)
Definition tvbuff.h:103
WS_DLL_PUBLIC char * tvb_get_ts_23_038_7bits_string_unpacked(wmem_allocator_t *scope, tvbuff_t *tvb, const int offset, int length)
Definition tvbuff.c:3015
WS_DLL_PUBLIC char * tvb_format_text(wmem_allocator_t *scope, tvbuff_t *tvb, const int offset, const int size)
Definition tvbuff.c:2719
WS_DLL_PUBLIC unsigned tvb_ensure_reported_length_remaining(const tvbuff_t *tvb, const int offset)
Definition tvbuff.c:770
WS_DLL_PUBLIC void tvb_composite_append(tvbuff_t *tvb, tvbuff_t *member)
Definition tvbuff_composite.c:206
WS_DLL_PUBLIC tvbuff_t * tvb_new_composite(void)
Definition tvbuff_composite.c:192
WS_DLL_PUBLIC void tvb_ensure_bytes_exist(const tvbuff_t *tvb, const int offset, const int length)
Definition tvbuff.c:648
WS_DLL_PUBLIC int tvb_strncaseeql(tvbuff_t *tvb, const int offset, const char *str, const size_t size)
Definition tvbuff.c:2665
WS_DLL_PUBLIC char * tvb_get_ts_23_038_7bits_string_packed(wmem_allocator_t *scope, tvbuff_t *tvb, const int bit_offset, int no_of_chars)
Definition tvbuff.c:3001
WS_DLL_PUBLIC int tvb_find_uint8(tvbuff_t *tvb, const int offset, const int maxlength, const uint8_t needle)
Definition tvbuff.c:2395
WS_DLL_PUBLIC tvbuff_t * tvb_child_uncompress_snappy(tvbuff_t *parent, tvbuff_t *tvb, const int offset, int comprlen)
Definition tvbuff_snappy.c:66
tvbuff_t * base64_to_tvb(tvbuff_t *parent, const char *base64)
Definition tvbuff_base64.c:169
WS_DLL_PUBLIC int tvb_reported_length_remaining(const tvbuff_t *tvb, const int offset)
Definition tvbuff.c:752
WS_DLL_PUBLIC const uint8_t * tvb_get_ptr(tvbuff_t *tvb, const int offset, const int length)
Definition tvbuff.c:1001
WS_DLL_PUBLIC void tvb_set_reported_length(tvbuff_t *tvb, const unsigned)
Definition tvbuff.c:793
WS_DLL_PUBLIC void tvb_ensure_bytes_exist64(const tvbuff_t *tvb, const int offset, const uint64_t length)
Definition tvbuff.c:631
WS_DLL_PUBLIC const char * tvb_bcd_dig_to_str_be(wmem_allocator_t *scope, tvbuff_t *tvb, const int offset, const int len, const dgt_set_t *dgt, bool skip_first)
Definition tvbuff.c:4657
WS_DLL_PUBLIC int tvb_captured_length_remaining(const tvbuff_t *tvb, const int offset)
Definition tvbuff.c:558
WS_DLL_PUBLIC tvbuff_t * tvb_child_uncompress_zlib(tvbuff_t *parent, tvbuff_t *tvb, const int offset, int comprlen)
Definition tvbuff_zlib.c:326
WS_DLL_PUBLIC uint32_t tvb_get_ipv4(tvbuff_t *tvb, const int offset)
Definition tvbuff.c:2040
WS_DLL_PUBLIC tvbuff_t * tvb_uncompress_lznt1(tvbuff_t *tvb, const int offset, int comprlen)
Definition tvbuff_lznt1.c:109
WS_DLL_PUBLIC int tvb_find_line_end(tvbuff_t *tvb, const int offset, int len, int *next_offset, const bool desegment)
Definition tvbuff.c:4128
WS_DLL_PUBLIC tvbuff_t * tvb_new_subset_remaining(tvbuff_t *backing, const int backing_offset)
Definition tvbuff_subset.c:240
WS_DLL_PUBLIC void * tvb_memcpy(tvbuff_t *tvb, void *target, const int offset, size_t length)
Definition tvbuff.c:924
WS_DLL_PUBLIC void tvb_composite_finalize(tvbuff_t *tvb)
Definition tvbuff_composite.c:252
WS_DLL_PUBLIC int tvb_memeql(tvbuff_t *tvb, const int offset, const uint8_t *str, size_t size)
Definition tvbuff.c:2693
tvbuff_t * base64_tvb_to_new_tvb(tvbuff_t *parent, int offset, int length)
Definition tvbuff_base64.c:184
WS_DLL_PUBLIC tvbuff_t * tvb_child_uncompress_lz77(tvbuff_t *parent, tvbuff_t *tvb, const int offset, int comprlen)
Definition tvbuff_lz77.c:137
WS_DLL_PUBLIC tvbuff_t * tvb_new_subset_length_caplen(tvbuff_t *backing, const int backing_offset, const int backing_length, const int reported_length)
Definition tvbuff_subset.c:155
WS_DLL_PUBLIC bool tvb_utf_8_isprint(tvbuff_t *tvb, const int offset, const int length)
Definition tvbuff.c:4077
WS_DLL_PUBLIC char * tvb_bytes_to_str(wmem_allocator_t *allocator, tvbuff_t *tvb, const int offset, const int len)
Definition tvbuff.c:4669
WS_DLL_PUBLIC tvbuff_t * tvb_new_octet_right_aligned(tvbuff_t *tvb, uint32_t bit_offset, int32_t no_of_bits)
Definition tvbuff.c:432
WS_DLL_PUBLIC void tvb_set_free_cb(tvbuff_t *tvb, const tvbuff_free_cb_t func)
Definition tvbuff_real.c:86
char * tvb_format_stringzpad_wsp(wmem_allocator_t *allocator, tvbuff_t *tvb, const int offset, const int size)
Definition tvbuff.c:2769
int tvb_get_ipv6_addr_with_prefix_len(tvbuff_t *tvb, int offset, ws_in6_addr *addr, uint32_t prefix_len)
Definition tvbuff.c:2086
WS_DLL_PUBLIC unsigned tvb_strsize(tvbuff_t *tvb, const int offset)
Definition tvbuff.c:2559
WS_DLL_PUBLIC tvbuff_t * tvb_uncompress_brotli(tvbuff_t *tvb, const int offset, int comprlen)
WS_DLL_PUBLIC tvbuff_t * tvb_child_uncompress_lz77huff(tvbuff_t *parent, tvbuff_t *tvb, const int offset, int comprlen)
Definition tvbuff_lz77huff.c:404
WS_DLL_PUBLIC int tvb_ws_mempbrk_pattern_uint8(tvbuff_t *tvb, const int offset, const int maxlength, const ws_mempbrk_pattern *pattern, unsigned char *found_needle)
Definition tvbuff.c:2515
WS_DLL_PUBLIC void * tvb_memdup(wmem_allocator_t *scope, tvbuff_t *tvb, const int offset, size_t length)
Definition tvbuff.c:982
WS_DLL_PUBLIC int tvb_skip_wsp(tvbuff_t *tvb, const int offset, const int maxlength)
Definition tvbuff.c:4400
WS_DLL_PUBLIC tvbuff_t * tvb_new_real_data(const uint8_t *data, const unsigned length, const int reported_length)
Definition tvbuff_real.c:58
char * tvb_format_stringzpad(wmem_allocator_t *scope, tvbuff_t *tvb, const int offset, const int size)
Definition tvbuff.c:2750
WS_DLL_PUBLIC unsigned tvb_get_varint(tvbuff_t *tvb, unsigned offset, unsigned maxlen, uint64_t *value, const unsigned encoding)
Definition tvbuff.c:4728
WS_DLL_PUBLIC tvbuff_t * tvb_uncompress_snappy(tvbuff_t *tvb, const int offset, int comprlen)
void tvb_composite_prepend(tvbuff_t *tvb, tvbuff_t *member)
Definition tvbuff_composite.c:229
WS_DLL_PUBLIC uint32_t tvb_get_bits(tvbuff_t *tvb, const unsigned bit_offset, const int no_of_bits, const unsigned encoding)
Definition tvbuff.c:2365
WS_DLL_PUBLIC tvbuff_t * tvb_uncompress_zstd(tvbuff_t *tvb, const int offset, int comprlen)
Definition tvbuff_zstd.c:28
WS_DLL_PUBLIC tvbuff_t * tvb_uncompress_lz77(tvbuff_t *tvb, const int offset, int comprlen)
Definition tvbuff_lz77.c:98
WS_DLL_PUBLIC tvbuff_t * tvb_uncompress_zlib(tvbuff_t *tvb, const int offset, int comprlen)
WS_DLL_PUBLIC int tvb_find_line_end_unquoted(tvbuff_t *tvb, const int offset, int len, int *next_offset)
Definition tvbuff.c:4251
Definition guid-utils.h:23
Definition wmem_allocator.h:27
Definition wmem_strbuf.h:42
Definition mcast_stream.h:30
Definition inet_addr.h:21
Definition tvbuff-int.h:35
unsigned length
Definition tvbuff-int.h:61
unsigned reported_length
Definition tvbuff-int.h:67
Definition ws_mempbrk.h:21