Wireshark 4.5.0
The Wireshark network protocol analyzer
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
wscbor_enc.h
Go to the documentation of this file.
1
16#ifndef __WSCBOR_ENC_H__
17#define __WSCBOR_ENC_H__
18
19#include <ws_symbol_export.h>
20#include <glib.h>
21#include <stdbool.h>
22#include <stdint.h>
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
31WS_DLL_PUBLIC
32void wscbor_enc_undefined(GByteArray *buf);
33
37WS_DLL_PUBLIC
38void wscbor_enc_null(GByteArray *buf);
39
44WS_DLL_PUBLIC
45void wscbor_enc_boolean(GByteArray *buf, bool value);
46
51WS_DLL_PUBLIC
52void wscbor_enc_uint64(GByteArray *buf, uint64_t value);
53
58WS_DLL_PUBLIC
59void wscbor_enc_int64(GByteArray *buf, int64_t value);
60
67WS_DLL_PUBLIC
68void wscbor_enc_bstr(GByteArray *buf, const uint8_t *ptr, size_t len);
69
78WS_DLL_PUBLIC
79void wscbor_enc_bstr_bytearray(GByteArray *buf, GByteArray *src);
80
85WS_DLL_PUBLIC
86void wscbor_enc_tstr(GByteArray *buf, const char *ptr);
87
93WS_DLL_PUBLIC
94void wscbor_enc_array_head(GByteArray *buf, size_t len);
95
101WS_DLL_PUBLIC
102void wscbor_enc_map_head(GByteArray *buf, size_t len);
103
104#ifdef __cplusplus
105}
106#endif
107
108#endif /* __WSCBOR_ENC_H__ */
WS_DLL_PUBLIC void wscbor_enc_bstr(GByteArray *buf, const uint8_t *ptr, size_t len)
Definition wscbor_enc.c:84
WS_DLL_PUBLIC void wscbor_enc_boolean(GByteArray *buf, bool value)
Definition wscbor_enc.c:65
WS_DLL_PUBLIC void wscbor_enc_map_head(GByteArray *buf, size_t len)
Definition wscbor_enc.c:111
WS_DLL_PUBLIC void wscbor_enc_int64(GByteArray *buf, int64_t value)
Definition wscbor_enc.c:73
WS_DLL_PUBLIC void wscbor_enc_uint64(GByteArray *buf, uint64_t value)
Definition wscbor_enc.c:69
WS_DLL_PUBLIC void wscbor_enc_bstr_bytearray(GByteArray *buf, GByteArray *src)
Definition wscbor_enc.c:91
WS_DLL_PUBLIC void wscbor_enc_undefined(GByteArray *buf)
Definition wscbor_enc.c:57
WS_DLL_PUBLIC void wscbor_enc_array_head(GByteArray *buf, size_t len)
Definition wscbor_enc.c:107
WS_DLL_PUBLIC void wscbor_enc_null(GByteArray *buf)
Definition wscbor_enc.c:61
WS_DLL_PUBLIC void wscbor_enc_tstr(GByteArray *buf, const char *ptr)
Definition wscbor_enc.c:98