Wireshark 4.5.0
The Wireshark network protocol analyzer
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Classes | Macros | Typedefs | Functions
buffer.h File Reference
#include <inttypes.h>
#include <stddef.h>
#include "ws_symbol_export.h"

Go to the source code of this file.

Classes

struct  Buffer
 

Typedefs

typedef struct Buffer Buffer
 

Functions

WS_DLL_PUBLIC void ws_buffer_init (Buffer *buffer, size_t space)
 
WS_DLL_PUBLIC void ws_buffer_free (Buffer *buffer)
 
WS_DLL_PUBLIC void ws_buffer_assure_space (Buffer *buffer, size_t space)
 
WS_DLL_PUBLIC void ws_buffer_append (Buffer *buffer, const uint8_t *from, size_t bytes)
 
WS_DLL_PUBLIC void ws_buffer_remove_start (Buffer *buffer, size_t bytes)
 
WS_DLL_PUBLIC void ws_buffer_cleanup (void)
 

Detailed Description

Wiretap Library Copyright (c) 1998 by Gilbert Ramirez gram@.nosp@m.alum.nosp@m.ni.ri.nosp@m.ce.e.nosp@m.du

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

Function Documentation

◆ ws_buffer_remove_start()

WS_DLL_PUBLIC void ws_buffer_remove_start ( Buffer buffer,
size_t  bytes 
)

ws_error() does an abort() and thus never returns