Minh Nguyen / ArduinoJson
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers integer.hpp Source File

integer.hpp

00001 // ArduinoJson - arduinojson.org
00002 // Copyright Benoit Blanchon 2014-2021
00003 // MIT License
00004 
00005 #pragma once
00006 
00007 #include <stdint.h>  // int8_t, int16_t
00008 
00009 #include <ArduinoJson/Namespace.hpp>
00010 
00011 namespace ARDUINOJSON_NAMESPACE {
00012 
00013 template <int Bits>
00014 struct int_t;
00015 
00016 template <>
00017 struct int_t<8> {
00018   typedef int8_t type;
00019 };
00020 
00021 template <>
00022 struct int_t<16> {
00023   typedef int16_t type;
00024 };
00025 
00026 template <>
00027 struct int_t<32> {
00028   typedef int32_t type;
00029 };
00030 }  // namespace ARDUINOJSON_NAMESPACE