libacfutils
A general purpose library of utility functions designed to make it easier to develop addons for the X-Plane flight simulator.
Loading...
Searching...
No Matches
hexcode.h
Go to the documentation of this file.
1/*
2 * CDDL HEADER START
3 *
4 * This file and its contents are supplied under the terms of the
5 * Common Development and Distribution License ("CDDL"), version 1.0.
6 * You may only use this file in accordance with the terms of version
7 * 1.0 of the CDDL.
8 *
9 * A full copy of the text of the CDDL should have accompanied this
10 * source. A copy of the CDDL is also available via the Internet at
11 * http://www.illumos.org/license/CDDL.
12 *
13 * CDDL HEADER END
14*/
15/*
16 * Copyright 2023 Saso Kiselkov. All rights reserved.
17 */
20#ifndef _ACF_UTILS_HEXCODE_H_
21#define _ACF_UTILS_HEXCODE_H_
22
23#include <stdlib.h>
24#include "core.h"
25#include "types.h"
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31API_EXPORT void hex_enc(const void *in_raw, size_t len, void *out_enc,
32 size_t out_cap);
33API_EXPORT bool_t hex_dec(const void *in_enc, size_t len, void *out_raw,
34 size_t out_cap);
35
36#ifdef __cplusplus
37}
38#endif
39
40#endif /* _ACF_UTILS_HEXCODE_H_ */
bool_t hex_dec(const void *in_enc, size_t len, void *out_raw, size_t out_cap)
Definition hexcode.c:84
void hex_enc(const void *in_raw, size_t len, void *out_enc, size_t out_cap)
Definition hexcode.c:38