Home
last modified time | relevance | path

Searched refs:pb_dec_svarint (Results 1 – 4 of 4) sorted by relevance

/external/nanopb-c/tests/decode_unittests/
Ddecode_unittests.c147 TEST((s = S("\x01"), pb_dec_svarint(&s, &f, &d) && d == -1)) in main()
148 TEST((s = S("\x02"), pb_dec_svarint(&s, &f, &d) && d == 1)) in main()
149 TEST((s = S("\xfe\xff\xff\xff\x0f"), pb_dec_svarint(&s, &f, &d) && d == INT32_MAX)) in main()
150 TEST((s = S("\xff\xff\xff\xff\x0f"), pb_dec_svarint(&s, &f, &d) && d == INT32_MIN)) in main()
159 TEST((s = S("\x01"), pb_dec_svarint(&s, &f, &d) && d == -1)) in main()
160 TEST((s = S("\x02"), pb_dec_svarint(&s, &f, &d) && d == 1)) in main()
161 …TEST((s = S("\xFE\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x01"), pb_dec_svarint(&s, &f, &d) && d == INT64_… in main()
162 …TEST((s = S("\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x01"), pb_dec_svarint(&s, &f, &d) && d == INT64_… in main()
171 TEST((s = S("\xfe\xff\xff\xff\x0f"), pb_dec_svarint(&s, &f, &d))); in main()
172 TEST((s = S("\xfe\xff\xff\xff\x10"), !pb_dec_svarint(&s, &f, &d))); in main()
[all …]
/external/grpc-grpc/third_party/nanopb/tests/decode_unittests/
Ddecode_unittests.c144 TEST((s = S("\x01"), pb_dec_svarint(&s, &f, &d) && d == -1)) in main()
145 TEST((s = S("\x02"), pb_dec_svarint(&s, &f, &d) && d == 1)) in main()
146 TEST((s = S("\xfe\xff\xff\xff\x0f"), pb_dec_svarint(&s, &f, &d) && d == INT32_MAX)) in main()
147 TEST((s = S("\xff\xff\xff\xff\x0f"), pb_dec_svarint(&s, &f, &d) && d == INT32_MIN)) in main()
156 TEST((s = S("\x01"), pb_dec_svarint(&s, &f, &d) && d == -1)) in main()
157 TEST((s = S("\x02"), pb_dec_svarint(&s, &f, &d) && d == 1)) in main()
158 …TEST((s = S("\xFE\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x01"), pb_dec_svarint(&s, &f, &d) && d == INT64_… in main()
159 …TEST((s = S("\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x01"), pb_dec_svarint(&s, &f, &d) && d == INT64_… in main()
/external/grpc-grpc/third_party/nanopb/
Dpb_decode.c40 static bool checkreturn pb_dec_svarint(pb_istream_t *stream, const pb_field_t *field, void *dest);
61 &pb_dec_svarint,
1212 static bool checkreturn pb_dec_svarint(pb_istream_t *stream, const pb_field_t *field, void *dest) in pb_dec_svarint() function
/external/nanopb-c/
Dpb_decode.c40 static bool checkreturn pb_dec_svarint(pb_istream_t *stream, const pb_field_t *field, void *dest);
70 &pb_dec_svarint,
1350 static bool checkreturn pb_dec_svarint(pb_istream_t *stream, const pb_field_t *field, void *dest) in pb_dec_svarint() function