110ff414cSEd Maste /* 210ff414cSEd Maste * Copyright (c) 2014-2020 Pavel Kalvoda <me@pavelkalvoda.com> 310ff414cSEd Maste * 410ff414cSEd Maste * libcbor is free software; you can redistribute it and/or modify 510ff414cSEd Maste * it under the terms of the MIT license. See LICENSE for details. 610ff414cSEd Maste */ 710ff414cSEd Maste 810ff414cSEd Maste #ifndef LIBCBOR_ENCODERS_H 910ff414cSEd Maste #define LIBCBOR_ENCODERS_H 1010ff414cSEd Maste 1110ff414cSEd Maste #include "cbor/common.h" 1210ff414cSEd Maste 1310ff414cSEd Maste #ifdef __cplusplus 1410ff414cSEd Maste extern "C" { 1510ff414cSEd Maste #endif 1610ff414cSEd Maste 17*5d3e7166SEd Maste _CBOR_NODISCARD 1810ff414cSEd Maste size_t _cbor_encode_uint8(uint8_t value, unsigned char *buffer, 1910ff414cSEd Maste size_t buffer_size, uint8_t offset); 2010ff414cSEd Maste 21*5d3e7166SEd Maste _CBOR_NODISCARD 2210ff414cSEd Maste size_t _cbor_encode_uint16(uint16_t value, unsigned char *buffer, 2310ff414cSEd Maste size_t buffer_size, uint8_t offset); 2410ff414cSEd Maste 25*5d3e7166SEd Maste _CBOR_NODISCARD 2610ff414cSEd Maste size_t _cbor_encode_uint32(uint32_t value, unsigned char *buffer, 2710ff414cSEd Maste size_t buffer_size, uint8_t offset); 2810ff414cSEd Maste 29*5d3e7166SEd Maste _CBOR_NODISCARD 3010ff414cSEd Maste size_t _cbor_encode_uint64(uint64_t value, unsigned char *buffer, 3110ff414cSEd Maste size_t buffer_size, uint8_t offset); 3210ff414cSEd Maste 33*5d3e7166SEd Maste _CBOR_NODISCARD 3410ff414cSEd Maste size_t _cbor_encode_uint(uint64_t value, unsigned char *buffer, 3510ff414cSEd Maste size_t buffer_size, uint8_t offset); 3610ff414cSEd Maste 3710ff414cSEd Maste #ifdef __cplusplus 3810ff414cSEd Maste } 3910ff414cSEd Maste #endif 4010ff414cSEd Maste 4110ff414cSEd Maste #endif // LIBCBOR_ENCODERS_H 42