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_DLL_PUBLIC uint64_t tvb_get_uint64_with_length(
tvbuff_t *tvb,
const int offset,
unsigned length,
const unsigned encoding);
396WS_DEPRECATED_X(
"Use tvb_get_uint64 instead")
397static inline uint64_t tvb_get_guint64(
tvbuff_t *tvb, const
int offset, const
unsigned encoding) {
return tvb_get_uint64(tvb, offset, encoding); }
398WS_DLL_PUBLIC int64_t tvb_get_int64(
tvbuff_t *tvb,
const int offset,
const unsigned encoding);
399WS_DEPRECATED_X(
"Use tvb_get_int64 instead")
400static inline int64_t tvb_get_gint64(
tvbuff_t *tvb, const
int offset, const
unsigned encoding) {
return tvb_get_int64(tvb, offset, encoding); }
401WS_DLL_PUBLIC
float tvb_get_ieee_float(
tvbuff_t *tvb,
const int offset,
const unsigned encoding);
402WS_DLL_PUBLIC
double tvb_get_ieee_double(
tvbuff_t *tvb,
const int offset,
const unsigned encoding);
411#if G_BYTE_ORDER == G_LITTLE_ENDIAN
412#define tvb_get_h_uint16 tvb_get_letohs
413#define tvb_get_h_uint32 tvb_get_letohl
414#elif G_BYTE_ORDER == G_BIG_ENDIAN
415#define tvb_get_h_uint16 tvb_get_ntohs
416#define tvb_get_h_uint32 tvb_get_ntohl
418#error "Unsupported byte order"
450 const unsigned encoding,
nstime_t* ns,
int *endoff);
461GByteArray* tvb_get_string_bytes(
tvbuff_t *tvb,
const int offset,
const int length,
462 const unsigned encoding, GByteArray* bytes,
int *endoff);
471WS_DLL_PUBLIC
void tvb_get_ipv6(
tvbuff_t *tvb,
const int offset,
485 ws_in4_addr *addr, uint32_t prefix_len);
501WS_DLL_PUBLIC
void tvb_get_ntohguid(
tvbuff_t *tvb,
const int offset,
504WS_DLL_PUBLIC
void tvb_get_letohguid(
tvbuff_t *tvb,
const int offset,
507WS_DLL_PUBLIC
void tvb_get_guid(
tvbuff_t *tvb,
const int offset,
508 e_guid_t *guid,
const unsigned encoding);
512 const int offset,
size_t length,
size_t *data_length,
const unsigned encoding);
522WS_DLL_PUBLIC uint8_t tvb_get_bits8(
tvbuff_t *tvb,
unsigned bit_offset,
523 const int no_of_bits);
526WS_DLL_PUBLIC uint16_t tvb_get_bits16(
tvbuff_t *tvb,
unsigned bit_offset,
527 const int no_of_bits,
const unsigned encoding);
530WS_DLL_PUBLIC uint32_t tvb_get_bits32(
tvbuff_t *tvb,
unsigned bit_offset,
531 const int no_of_bits,
const unsigned encoding);
534WS_DLL_PUBLIC uint64_t tvb_get_bits64(
tvbuff_t *tvb,
unsigned bit_offset,
535 const int no_of_bits,
const unsigned encoding);
542 const int no_of_bits,
const unsigned encoding);
569 const int offset,
size_t length);
607 const int maxlength,
const uint8_t needle);
609WS_DEPRECATED_X(
"Use tvb_find_uint8 instead")
610static inline
int tvb_find_guint8(
tvbuff_t* tvb, const
int offset,
611 const
int maxlength, const uint8_t needle) {
return tvb_find_uint8(tvb, offset, maxlength, needle); }
615 const int maxlength,
const uint16_t needle);
617WS_DEPRECATED_X(
"Use tvb_find_uint16 instead")
618static inline
int tvb_find_guint16(
tvbuff_t* tvb, const
int offset,
619 const
int maxlength, const uint16_t needle) {
633WS_DEPRECATED_X(
"Use tvb_ws_mempbrk_pattern_uint8 instead")
634static inline
int tvb_ws_mempbrk_pattern_guint8(
tvbuff_t* tvb, const
int offset,
635 const
int maxlength, const
ws_mempbrk_pattern* pattern,
unsigned char* found_needle) {
659 const unsigned maxlength);
709 tvbuff_t *tvb,
const int offset,
const int length,
const unsigned encoding);
733 tvbuff_t *tvb,
const int bit_offset,
int no_of_chars);
803 tvbuff_t *tvb,
const int bit_offset,
int no_of_chars);
826 tvbuff_t *tvb,
const int offset,
const int length,
const unsigned encoding);
855 tvbuff_t *tvb,
const int offset,
int *lengthp,
const unsigned encoding);
882WS_DEPRECATED_X(
"Use APIs that return a valid UTF-8 string instead")
884 const
int offset,
int *lengthp);
896 const
unsigned bufsize, uint8_t *
buffer);
904WS_DLL_PUBLIC
int tvb_get_raw_bytes_as_string(
tvbuff_t *tvb, const
int offset,
char *
buffer,
size_t bufsize);
952 int *next_offset, const
bool desegment);
973 int len,
int *next_offset);
993 const
int maxlength);
995WS_DLL_PUBLIC
int tvb_skip_wsp_return(
tvbuff_t *tvb, const
int offset);
997int tvb_skip_uint8(
tvbuff_t *tvb,
int offset, const
int maxlength, const uint8_t ch);
998WS_DEPRECATED_X("Use tvb_skip_uint8 instead")
999static inline
int tvb_skip_guint8(
tvbuff_t *tvb,
int offset, const
int maxlength, const uint8_t ch) {
1000 return tvb_skip_uint8(tvb, offset, maxlength, ch);
1028 const char *str,
const size_t size);
1035 const char *str,
const size_t size);
1042 const uint8_t *str,
size_t size);
1050 const int len,
const char punct);
1057 const int offset,
const int len);
1071 const unsigned char out[16];
1110 const int offset,
int len,
const dgt_set_t *dgt,
1111 bool skip_first,
bool odd,
bool bigendian);
1118 const int haystack_offset);
1122WS_DEPRECATED_X(
"Use tvb_uncompress_zlib instead")
1140 const
int offset,
int comprlen);
1148 const
int offset,
int comprlen);
1170 const
int offset,
int comprlen);
1188 const
int offset,
int comprlen);
1203 const
int offset,
int comprlen);
1212 tvbuff_t *tvb, const
int offset,
int comprlen);
1227 const
int offset,
int comprlen);
1236 tvbuff_t *tvb, const
int offset,
int comprlen);
1251 const
int offset,
int comprlen);
1260 tvbuff_t *tvb, const
int offset,
int comprlen);
1273 const
int offset,
int comprlen);
1282 tvbuff_t *tvb, const
int offset,
int comprlen);
1309extern
tvbuff_t* base64uri_tvb_to_new_tvb(
tvbuff_t* parent,
int offset,
int length);
1314 tvbuff_t *tvb, const
int offset, const
int len);
1317 int offset,
int length);
1332WS_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:4118
WS_DLL_PUBLIC bool tvb_ascii_isdigit(tvbuff_t *tvb, const int offset, const int length)
Definition tvbuff.c:4149
WS_DLL_PUBLIC int tvb_find_uint16(tvbuff_t *tvb, const int offset, const int maxlength, const uint16_t needle)
Definition tvbuff.c:2492
WS_DLL_PUBLIC int tvb_find_tvb(tvbuff_t *haystack_tvb, tvbuff_t *needle_tvb, const int haystack_offset)
Definition tvbuff.c:4736
WS_DLL_PUBLIC int tvb_strnlen(tvbuff_t *tvb, const int offset, const unsigned maxlength)
Definition tvbuff.c:2668
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:2123
WS_DLL_PUBLIC void tvb_set_fragment(tvbuff_t *tvb)
Definition tvbuff.c:4774
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:4530
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:3085
WS_DLL_PUBLIC int tvb_strneql(tvbuff_t *tvb, const int offset, const char *str, const size_t size)
Definition tvbuff.c:2696
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:3097
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:4068
WS_DLL_PUBLIC char * tvb_format_text_wsp(wmem_allocator_t *allocator, tvbuff_t *tvb, const int offset, const int size)
Definition tvbuff.c:2792
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:3784
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:4623
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:3553
WS_DLL_PUBLIC unsigned tvb_unicode_strsize(tvbuff_t *tvb, const int offset)
Definition tvbuff.c:2647
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:3287
WS_DLL_PUBLIC const uint8_t * tvb_get_const_stringz(tvbuff_t *tvb, const int offset, int *lengthp)
Definition tvbuff.c:3652
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:4601
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:3073
WS_DLL_PUBLIC char * tvb_format_text(wmem_allocator_t *scope, tvbuff_t *tvb, const int offset, const int size)
Definition tvbuff.c:2777
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:2723
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:3059
WS_DLL_PUBLIC int tvb_find_uint8(tvbuff_t *tvb, const int offset, const int maxlength, const uint8_t needle)
Definition tvbuff.c:2453
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:4715
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:2098
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:4186
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:2751
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:4135
WS_DLL_PUBLIC char * tvb_bytes_to_str(wmem_allocator_t *allocator, tvbuff_t *tvb, const int offset, const int len)
Definition tvbuff.c:4727
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:2827
int tvb_get_ipv6_addr_with_prefix_len(tvbuff_t *tvb, int offset, ws_in6_addr *addr, uint32_t prefix_len)
Definition tvbuff.c:2144
WS_DLL_PUBLIC unsigned tvb_strsize(tvbuff_t *tvb, const int offset)
Definition tvbuff.c:2617
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:2573
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:4458
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:2808
WS_DLL_PUBLIC unsigned tvb_get_varint(tvbuff_t *tvb, unsigned offset, unsigned maxlen, uint64_t *value, const unsigned encoding)
Definition tvbuff.c:4786
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:2423
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:4309
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