Path: blob/main/contrib/libcbor/src/cbor/internal/loaders.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_LOADERS_H8#define LIBCBOR_LOADERS_H910#include "cbor/common.h"1112#ifdef __cplusplus13extern "C" {14#endif1516/* Read the given uint from the given location, no questions asked */17_CBOR_NODISCARD18uint8_t _cbor_load_uint8(const unsigned char *source);1920_CBOR_NODISCARD21uint16_t _cbor_load_uint16(const unsigned char *source);2223_CBOR_NODISCARD24uint32_t _cbor_load_uint32(const unsigned char *source);2526_CBOR_NODISCARD27uint64_t _cbor_load_uint64(const unsigned char *source);2829_CBOR_NODISCARD30float _cbor_load_half(cbor_data source);3132_CBOR_NODISCARD33float _cbor_load_float(cbor_data source);3435_CBOR_NODISCARD36double _cbor_load_double(cbor_data source);3738#ifdef __cplusplus39}40#endif4142#endif // LIBCBOR_LOADERS_H434445