/nanopb-3.4.0/tests/alltypes_pointer/ |
D | encode_alltypes_pointer.c | 16 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/ |
D | encode_unittests.c | 115 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/ |
D | decode_alltypes_callback.c | 114 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 …]
|
D | encode_alltypes_callback.c | 219 int32_t rep_sfixed32 = -2009; in main() 227 int32_t sng_sfixed32 = 3049; in main()
|
/nanopb-3.4.0/tests/special_characters/ |
D | specchars.expected | 1 int32_t x\[10\];
|
/nanopb-3.4.0/tests/regression/issue_242/ |
D | zero_value.c | 15 int32_t value = 0; in main() 37 int32_t value = 0; in main()
|
/nanopb-3.4.0/tests/backwards_compatibility/ |
D | alltypes_legacy.h | 44 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/ |
D | fallback_type.expected | 1 int32_t member1;
|
/nanopb-3.4.0/tests/alltypes_callback/ |
D | decode_alltypes_callback.c | 115 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 …]
|
D | encode_alltypes_callback.c | 249 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/ |
D | encode_extensions.c | 18 int32_t extensionfield1 = 12345; in main()
|
D | decode_extensions.c | 20 int32_t extensionfield1; in main()
|
/nanopb-3.4.0/extra/ |
D | pb_syshdr.h | 23 typedef signed int int32_t; typedef
|
/nanopb-3.4.0/ |
D | pb_encode.h | 152 bool pb_encode_svarint(pb_ostream_t *stream, int32_t value);
|
D | pb_decode.h | 167 bool pb_decode_svarint(pb_istream_t *stream, int32_t *dest);
|
D | pb_encode.c | 41 #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()
|
D | pb_decode.c | 53 #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()
|
D | pb.h | 294 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/ |
D | pb_encode.h | 152 bool pb_encode_svarint(pb_ostream_t *stream, int32_t value);
|
D | pb_decode.h | 167 bool pb_decode_svarint(pb_istream_t *stream, int32_t *dest);
|
D | pb.h | 294 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/ |
D | index.md | 92 int32_t value; 125 2) `stdint.h`, for definitions of `int32_t` etc.
|
D | concepts.md | 159 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`
|
D | reference.md | 917 | dest | Pointer to destination `int32_t`, `uint32_t` or `float`.
|
/nanopb-3.4.0/tests/decode_unittests/ |
D | decode_unittests.c | 150 int32_t d; in main() 182 int32_t d; in main()
|