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
14extern "C" {
15#endif
16
17_CBOR_NODISCARD
18size_t _cbor_encode_uint8(uint8_t value, unsigned char *buffer,
19                          size_t buffer_size, uint8_t offset);
20
21_CBOR_NODISCARD
22size_t _cbor_encode_uint16(uint16_t value, unsigned char *buffer,
23                           size_t buffer_size, uint8_t offset);
24
25_CBOR_NODISCARD
26size_t _cbor_encode_uint32(uint32_t value, unsigned char *buffer,
27                           size_t buffer_size, uint8_t offset);
28
29_CBOR_NODISCARD
30size_t _cbor_encode_uint64(uint64_t value, unsigned char *buffer,
31                           size_t buffer_size, uint8_t offset);
32
33_CBOR_NODISCARD
34size_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