79763807

Date: 2025-09-13 16:01:03
Score: 1
Natty:
Report link

13.6.3.28. tvbrange:uncompress_zlib(name)

Given a TvbRange containing zlib compressed data, decompresses the data and returns a new TvbRange containing the uncompressed data. Since: 4.3.0

function p_xxxx_proto.dissector(tvb, pinfo, tree)  
    local subtree = tree:add(p_xxxx_proto, tvb:range(offset), "xxxxxxxxxx")  
    local compressed_data = tvb:range(40, data_length - 36)  
    subtree:add(f_data, compressed_data:uncompress_zlib(compressed_data:string()))  
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: xietao