Home
last modified time | relevance | path

Searched refs:pb_encode_svarint (Results 1 – 7 of 7) sorted by relevance

/nanopb-2.7.6/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-2.7.6/
Dpb_encode.h150 bool pb_encode_svarint(pb_ostream_t *stream, int64_t value);
152 bool pb_encode_svarint(pb_ostream_t *stream, int32_t value);
Dpb_encode.c622 bool checkreturn pb_encode_svarint(pb_ostream_t *stream, pb_int64_t value) in pb_encode_svarint() function
806 return pb_encode_svarint(stream, value); in pb_enc_varint()
/nanopb-2.7.6/spm_headers/nanopb/
Dpb_encode.h150 bool pb_encode_svarint(pb_ostream_t *stream, int64_t value);
152 bool pb_encode_svarint(pb_ostream_t *stream, int32_t value);
/nanopb-2.7.6/tests/alltypes_proto3_callback/
Dencode_alltypes_callback.c22 pb_encode_svarint(stream, (intptr_t)*arg); in write_svarint()
86 pb_encode_svarint(stream, 0) && in write_repeated_svarint()
88 pb_encode_svarint(stream, 0) && in write_repeated_svarint()
90 pb_encode_svarint(stream, 0) && in write_repeated_svarint()
92 pb_encode_svarint(stream, 0) && in write_repeated_svarint()
94 pb_encode_svarint(stream, (intptr_t)*arg); in write_repeated_svarint()
/nanopb-2.7.6/tests/alltypes_callback/
Dencode_alltypes_callback.c22 pb_encode_svarint(stream, (intptr_t)*arg); in write_svarint()
86 pb_encode_svarint(stream, 0) && in write_repeated_svarint()
88 pb_encode_svarint(stream, 0) && in write_repeated_svarint()
90 pb_encode_svarint(stream, 0) && in write_repeated_svarint()
92 pb_encode_svarint(stream, 0) && in write_repeated_svarint()
94 pb_encode_svarint(stream, (intptr_t)*arg); in write_repeated_svarint()
/nanopb-2.7.6/docs/
Dreference.md623 #### pb_encode_svarint subsubsection
628 bool pb_encode_svarint(pb_ostream_t *stream, int64_t value);