Home
last modified time | relevance | path

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

/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/
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.c624 bool checkreturn pb_encode_svarint(pb_ostream_t *stream, pb_int64_t value) in pb_encode_svarint() function
819 return pb_encode_svarint(stream, value); in pb_enc_varint()
/nanopb-3.4.0/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-3.4.0/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-3.4.0/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-3.4.0/docs/
Dreference.md636 #### pb_encode_svarint subsubsection
641 bool pb_encode_svarint(pb_ostream_t *stream, int64_t value);