Home
last modified time | relevance | path

Searched refs:int32_t (Results 1 – 25 of 25) sorted by relevance

/nanopb-3.4.0/tests/alltypes_pointer/
Dencode_alltypes_pointer.c16 int32_t req_int32 = -1001; in main()
20 int32_t req_sint32 = -1005; in main()
24 int32_t req_sfixed32 = -1009; in main()
31 static int32_t req_substuff = 1016; in main()
37 int32_t end = 1099; in main()
40 int32_t rep_int32[5] = {0, 0, 0, 0, -2001}; in main()
44 int32_t rep_sint32[5] = {0, 0, 0, 0, -2005}; in main()
48 int32_t rep_sfixed32[5] = {0, 0, 0, 0, -2009}; in main()
56 static int32_t rep_sub2zero = 0; in main()
57 static int32_t rep_substuff2 = 2016; in main()
[all …]
/nanopb-3.4.0/tests/encode_unittests/
Dencode_unittests.c115 TEST(WRITES(pb_encode_svarint(&s, (int32_t)0x00000000), "\x00")); in main()
116 TEST(WRITES(pb_encode_svarint(&s, (int32_t)0xFFFFFFFF), "\x01")); in main()
117 TEST(WRITES(pb_encode_svarint(&s, (int32_t)0x0000003F), "\x7E")); in main()
118 TEST(WRITES(pb_encode_svarint(&s, (int32_t)0xFFFFFFC0), "\x7F")); in main()
119 TEST(WRITES(pb_encode_svarint(&s, (int32_t)0x00000040), "\x80\x01")); in main()
120 TEST(WRITES(pb_encode_svarint(&s, (int32_t)0x00001FFF), "\xFE\x7F")); in main()
121 TEST(WRITES(pb_encode_svarint(&s, (int32_t)0xFFFFE000), "\xFF\x7F")); in main()
122 TEST(WRITES(pb_encode_svarint(&s, (int32_t)0x00002000), "\x80\x80\x01")); in main()
123 TEST(WRITES(pb_encode_svarint(&s, (int32_t)0x000FFFFF), "\xFE\xFF\x7F")); in main()
124 TEST(WRITES(pb_encode_svarint(&s, (int32_t)0xFFF00000), "\xFF\xFF\x7F")); in main()
[all …]
/nanopb-3.4.0/tests/alltypes_proto3_callback/
Ddecode_alltypes_callback.c114 int32_t** expected = (int32_t**)arg; in read_repeated_varint()
125 int32_t** expected = (int32_t**)arg; in read_repeated_svarint()
235 int32_t rep_int32[5] = {0, 0, 0, 0, -2001}; in check_alltypes()
236 int32_t rep_int64[5] = {0, 0, 0, 0, -2002}; in check_alltypes()
237 int32_t rep_uint32[5] = {0, 0, 0, 0, 2003}; in check_alltypes()
238 int32_t rep_uint64[5] = {0, 0, 0, 0, 2004}; in check_alltypes()
239 int32_t rep_sint32[5] = {0, 0, 0, 0, -2005}; in check_alltypes()
240 int32_t rep_sint64[5] = {0, 0, 0, 0, -2006}; in check_alltypes()
241 int32_t rep_bool[5] = {false, false, false, false, true}; in check_alltypes()
243 int32_t rep_sfixed32[5] = {0, 0, 0, 0, -2009}; in check_alltypes()
[all …]
Dencode_alltypes_callback.c219 int32_t rep_sfixed32 = -2009; in main()
227 int32_t sng_sfixed32 = 3049; in main()
/nanopb-3.4.0/tests/special_characters/
Dspecchars.expected1 int32_t x\[10\];
/nanopb-3.4.0/tests/regression/issue_242/
Dzero_value.c15 int32_t value = 0; in main()
37 int32_t value = 0; in main()
/nanopb-3.4.0/tests/backwards_compatibility/
Dalltypes_legacy.h44 int32_t int32_min;
45 int32_t int32_max;
60 int32_t substuff2;
71 int32_t req_int32;
75 int32_t req_sint32;
79 int32_t req_sfixed32;
89 int32_t rep_int32[5];
97 int32_t rep_sint32[5];
105 int32_t rep_sfixed32[5];
123 int32_t opt_int32;
[all …]
/nanopb-3.4.0/tests/fallback_type/
Dfallback_type.expected1 int32_t member1;
/nanopb-3.4.0/tests/alltypes_callback/
Ddecode_alltypes_callback.c115 int32_t** expected = (int32_t**)arg; in read_repeated_varint()
126 int32_t** expected = (int32_t**)arg; in read_repeated_svarint()
238 int32_t req_sfixed32 = -1009; in check_alltypes()
245 int32_t rep_int32[5] = {0, 0, 0, 0, -2001}; in check_alltypes()
246 int32_t rep_int64[5] = {0, 0, 0, 0, -2002}; in check_alltypes()
247 int32_t rep_uint32[5] = {0, 0, 0, 0, 2003}; in check_alltypes()
248 int32_t rep_uint64[5] = {0, 0, 0, 0, 2004}; in check_alltypes()
249 int32_t rep_sint32[5] = {0, 0, 0, 0, -2005}; in check_alltypes()
250 int32_t rep_sint64[5] = {0, 0, 0, 0, -2006}; in check_alltypes()
251 int32_t rep_bool[5] = {false, false, false, false, true}; in check_alltypes()
[all …]
Dencode_alltypes_callback.c249 int32_t req_sfixed32 = -1009; in main()
257 int32_t rep_sfixed32 = -2009; in main()
265 int32_t opt_sfixed32 = 3049; in main()
/nanopb-3.4.0/tests/extensions/
Dencode_extensions.c18 int32_t extensionfield1 = 12345; in main()
Ddecode_extensions.c20 int32_t extensionfield1; in main()
/nanopb-3.4.0/extra/
Dpb_syshdr.h23 typedef signed int int32_t; typedef
/nanopb-3.4.0/
Dpb_encode.h152 bool pb_encode_svarint(pb_ostream_t *stream, int32_t value);
Dpb_decode.h167 bool pb_decode_svarint(pb_istream_t *stream, int32_t *dest);
Dpb_encode.c41 #define pb_int64_t int32_t
811 else if (field->data_size == sizeof(int32_t)) in pb_enc_varint()
812 value = *(const int32_t*)field->pData; in pb_enc_varint()
Dpb_decode.c53 #define pb_int64_t int32_t
1474 svalue = (int32_t)value; in pb_dec_varint()
1480 else if (field->data_size == sizeof(int32_t)) in pb_dec_varint()
1481 clamped = *(int32_t*)field->pData = (int32_t)svalue; in pb_dec_varint()
Dpb.h294 typedef int32_t pb_ssize_t;
360 PB_STATIC_ASSERT(sizeof(int64_t) == 2 * sizeof(int32_t), INT64_T_WRONG_SIZE)
/nanopb-3.4.0/spm_headers/nanopb/
Dpb_encode.h152 bool pb_encode_svarint(pb_ostream_t *stream, int32_t value);
Dpb_decode.h167 bool pb_decode_svarint(pb_istream_t *stream, int32_t *dest);
Dpb.h294 typedef int32_t pb_ssize_t;
360 PB_STATIC_ASSERT(sizeof(int64_t) == 2 * sizeof(int32_t), INT64_T_WRONG_SIZE)
/nanopb-3.4.0/docs/
Dindex.md92 int32_t value;
125 2) `stdint.h`, for definitions of `int32_t` etc.
Dconcepts.md159 such as `int32` is `int32_t`, `float` is `float` and `bool` is `bool`. However, the
183 .pb.h: `int32_t age;`
211 .pb.h: `pb_size_t numbers_count;` `int32_t numbers[5];`
215 .pb.h: `int32_t numbers[5];`
503 .proto. For example, for a `int32` field, you need a `int32_t`
Dreference.md917 | dest | Pointer to destination `int32_t`, `uint32_t` or `float`.
/nanopb-3.4.0/tests/decode_unittests/
Ddecode_unittests.c150 int32_t d; in main()
182 int32_t d; in main()