1 /*
2  * Copyright (c) 2014-2020 Pavel Kalvoda <me@pavelkalvoda.com>
3  *
4  * libcbor is free software; you can redistribute it and/or modify
5  * it under the terms of the MIT license. See LICENSE for details.
6  */
7 
8 #ifndef LIBCBOR_ENCODERS_H
9 #define LIBCBOR_ENCODERS_H
10 
11 #include "cbor/common.h"
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 _CBOR_NODISCARD
18 size_t _cbor_encode_uint8(uint8_t value, unsigned char *buffer,
19                           size_t buffer_size, uint8_t offset);
20 
21 _CBOR_NODISCARD
22 size_t _cbor_encode_uint16(uint16_t value, unsigned char *buffer,
23                            size_t buffer_size, uint8_t offset);
24 
25 _CBOR_NODISCARD
26 size_t _cbor_encode_uint32(uint32_t value, unsigned char *buffer,
27                            size_t buffer_size, uint8_t offset);
28 
29 _CBOR_NODISCARD
30 size_t _cbor_encode_uint64(uint64_t value, unsigned char *buffer,
31                            size_t buffer_size, uint8_t offset);
32 
33 _CBOR_NODISCARD
34 size_t _cbor_encode_uint(uint64_t value, unsigned char *buffer,
35                          size_t buffer_size, uint8_t offset);
36 
37 #ifdef __cplusplus
38 }
39 #endif
40 
41 #endif  // LIBCBOR_ENCODERS_H
42