Path: blob/main/contrib/libcbor/src/cbor/internal/encoders.h
39566 views
/*1* Copyright (c) 2014-2020 Pavel Kalvoda <[email protected]>2*3* libcbor is free software; you can redistribute it and/or modify4* it under the terms of the MIT license. See LICENSE for details.5*/67#ifndef LIBCBOR_ENCODERS_H8#define LIBCBOR_ENCODERS_H910#include "cbor/common.h"1112#ifdef __cplusplus13extern "C" {14#endif1516_CBOR_NODISCARD17size_t _cbor_encode_uint8(uint8_t value, unsigned char *buffer,18size_t buffer_size, uint8_t offset);1920_CBOR_NODISCARD21size_t _cbor_encode_uint16(uint16_t value, unsigned char *buffer,22size_t buffer_size, uint8_t offset);2324_CBOR_NODISCARD25size_t _cbor_encode_uint32(uint32_t value, unsigned char *buffer,26size_t buffer_size, uint8_t offset);2728_CBOR_NODISCARD29size_t _cbor_encode_uint64(uint64_t value, unsigned char *buffer,30size_t buffer_size, uint8_t offset);3132_CBOR_NODISCARD33size_t _cbor_encode_uint(uint64_t value, unsigned char *buffer,34size_t buffer_size, uint8_t offset);3536#ifdef __cplusplus37}38#endif3940#endif // LIBCBOR_ENCODERS_H414243