deCONZ C++ API v2.6.1
Loading...
Searching...
No Matches
buffer_helper.h
1#ifndef DECONZ_BUFFER_HELPER_H_
2#define DECONZ_BUFFER_HELPER_H_
3
4/*
5 * Copyright (c) 2012-2023 dresden elektronik ingenieurtechnik gmbh.
6 * All rights reserved.
7 *
8 * The software in this package is published under the terms of the BSD
9 * style license a copy of which has been included with this distribution in
10 * the LICENSE.txt file.
11 *
12 */
13
14#include <stdint.h>
15#include "deconz/declspec.h"
16
17typedef union
18{
19 uint8_t u8;
20 uint16_t u16;
21 uint32_t u32;
22 uint64_t u64;
23 uint8_t raw[8];
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
30DECONZ_DLLSPEC uint8_t * put_u8_le(uint8_t *out, const uint8_t *in);
31DECONZ_DLLSPEC uint8_t * put_u16_le(uint8_t *out, const uint16_t *in);
32DECONZ_DLLSPEC uint8_t * put_u32_le(uint8_t *out, const uint32_t *in);
33DECONZ_DLLSPEC uint8_t * put_u64_le(uint8_t *out, const uint64_t *in);
34DECONZ_DLLSPEC const uint8_t * get_u8_le(const uint8_t *in, uint8_t *out);
35DECONZ_DLLSPEC const uint8_t * get_u16_le(const uint8_t *in, uint16_t *out);
36DECONZ_DLLSPEC const uint8_t * get_u32_le(const uint8_t *in, uint32_t *out);
37DECONZ_DLLSPEC const uint8_t * get_u64_le(const uint8_t *in, uint64_t *out);
38
39#ifdef __cplusplus
40}
41#endif
42#endif /* DECONZ_BUFFER_HELPER_H_ */
Definition buffer_helper.h:18