Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Typedefs | Functions
tvbuff_rdp.h File Reference
#include <epan/wmem_scopes.h>
#include <epan/tvbuff.h>

Go to the source code of this file.

Typedefs

typedef struct _zgfx_context_t zgfx_context_t
 

Functions

WS_DLL_PUBLIC zgfx_context_tzgfx_context_new (wmem_allocator_t *allocator)
 Create a new zgfx context.
 
WS_DLL_PUBLIC tvbuff_trdp8_decompress (zgfx_context_t *zgfx, wmem_allocator_t *allocator, tvbuff_t *tvb, unsigned offset)
 Decompress RDP8 data.
 

Detailed Description

Various decompression routines used by RDP

Copyright (c) 2021 by David Fort conta.nosp@m.ct@h.nosp@m.arden.nosp@m.ing-.nosp@m.consu.nosp@m.ltin.nosp@m.g.com

Wireshark - Network traffic analyzer By Gerald Combs geral.nosp@m.d@wi.nosp@m.resha.nosp@m.rk.o.nosp@m.rg Copyright 1998 Gerald Combs

SPDX-License-Identifier: GPL-2.0-or-later

Function Documentation

◆ rdp8_decompress()

WS_DLL_PUBLIC tvbuff_t * rdp8_decompress ( zgfx_context_t zgfx,
wmem_allocator_t allocator,
tvbuff_t tvb,
unsigned  offset 
)

Decompress RDP8 data.

Parameters
zgfxPointer to the zgfx context.
allocatorMemory allocator to use for allocating the decompressed data.
tvbPointer to the input tvbuff containing the compressed data.
offsetThe offset within the tvbuff where the compressed data starts.
Returns
Pointer to the decompressed tvbuff, or NULL on failure.

◆ zgfx_context_new()

WS_DLL_PUBLIC zgfx_context_t * zgfx_context_new ( wmem_allocator_t allocator)

Create a new zgfx context.

Parameters
allocatorMemory allocator to use for allocating the context.
Returns
Pointer to the newly created zgfx_context_t, or NULL on failure.