1/*
2 * Copyright (c) 2014-2019 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
17size_t _cbor_encode_uint8(uint8_t value, unsigned char *buffer,
18                          size_t buffer_size, uint8_t offset);
19
20size_t _cbor_encode_uint16(uint16_t value, unsigned char *buffer,
21                           size_t buffer_size, uint8_t offset);
22
23size_t _cbor_encode_uint32(uint32_t value, unsigned char *buffer,
24                           size_t buffer_size, uint8_t offset);
25
26size_t _cbor_encode_uint64(uint64_t value, unsigned char *buffer,
27                           size_t buffer_size, uint8_t offset);
28
29size_t _cbor_encode_uint(uint64_t value, unsigned char *buffer,
30                         size_t buffer_size, uint8_t offset);
31
32#ifdef __cplusplus
33}
34#endif
35
36#endif  // LIBCBOR_ENCODERS_H
37