Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
wscbor_enc.h
Go to the documentation of this file.
1
15#pragma once
16#include <ws_symbol_export.h>
17#include <glib.h>
18#include <stdbool.h>
19#include <stdint.h>
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
28WS_DLL_PUBLIC
29void wscbor_enc_undefined(GByteArray *buf);
30
34WS_DLL_PUBLIC
35void wscbor_enc_null(GByteArray *buf);
36
41WS_DLL_PUBLIC
42void wscbor_enc_boolean(GByteArray *buf, bool value);
43
48WS_DLL_PUBLIC
49void wscbor_enc_uint64(GByteArray *buf, uint64_t value);
50
55WS_DLL_PUBLIC
56void wscbor_enc_int64(GByteArray *buf, int64_t value);
57
64WS_DLL_PUBLIC
65void wscbor_enc_bstr(GByteArray *buf, const uint8_t *ptr, size_t len);
66
75WS_DLL_PUBLIC
76void wscbor_enc_bstr_bytearray(GByteArray *buf, GByteArray *src);
77
82WS_DLL_PUBLIC
83void wscbor_enc_tstr(GByteArray *buf, const char *ptr);
84
90WS_DLL_PUBLIC
91void wscbor_enc_array_head(GByteArray *buf, size_t len);
92
98WS_DLL_PUBLIC
99void wscbor_enc_map_head(GByteArray *buf, size_t len);
100
101#ifdef __cplusplus
102}
103#endif
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