Home
last modified time | relevance | path

Searched refs:pb_encode_varint (Results 1 – 11 of 11) sorted by relevance

/nanopb-2.7.6/tests/encode_unittests/
Dencode_unittests.c26 return pb_encode_varint(stream, value); in fieldcallback()
36 return pb_encode_varint(stream, *state); in crazyfieldcallback()
80 TEST(WRITES(pb_encode_varint(&s, 0), "\0")); in main()
81 TEST(WRITES(pb_encode_varint(&s, 1), "\1")); in main()
82 TEST(WRITES(pb_encode_varint(&s, 0x7F), "\x7F")); in main()
83 TEST(WRITES(pb_encode_varint(&s, 0x80), "\x80\x01")); in main()
84 TEST(WRITES(pb_encode_varint(&s, UINT32_MAX), "\xFF\xFF\xFF\xFF\x0F")); in main()
85 TEST(WRITES(pb_encode_varint(&s, UINT64_MAX), "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x01")); in main()
93 TEST(WRITES(pb_encode_varint(&s, 0x00000000), "\x00")); in main()
94 TEST(WRITES(pb_encode_varint(&s, 0x00000001), "\x01")); in main()
[all …]
/nanopb-2.7.6/tests/alltypes_proto3_callback/
Dencode_alltypes_callback.c16 pb_encode_varint(stream, (intptr_t)*arg); in write_varint()
72 pb_encode_varint(stream, 0) && in write_repeated_varint()
74 pb_encode_varint(stream, 0) && in write_repeated_varint()
76 pb_encode_varint(stream, 0) && in write_repeated_varint()
78 pb_encode_varint(stream, 0) && in write_repeated_varint()
80 pb_encode_varint(stream, (intptr_t)*arg); in write_repeated_varint()
103 pb_encode_varint(stream, 5 * 4) && /* Number of bytes */ in write_repeated_fixed32()
117 pb_encode_varint(stream, 5 * 8) && /* Number of bytes */ in write_repeated_fixed64()
132 pb_encode_varint(stream, 5 * 8) && /* Number of bytes */ in write_repeated_double()
142 pb_encode_varint(stream, 5 * 8) && /* Number of bytes */ in write_repeated_double()
/nanopb-2.7.6/
Dpb_encode.h142 bool pb_encode_varint(pb_ostream_t *stream, uint64_t value);
144 bool pb_encode_varint(pb_ostream_t *stream, uint32_t value);
Dpb_encode.c171 if (!pb_encode_varint(stream, (pb_uint64_t)size)) in encode_array()
215 pb_encode_varint(stream, 0); in encode_array()
604 bool checkreturn pb_encode_varint(pb_ostream_t *stream, pb_uint64_t value) in pb_encode_varint() function
630 return pb_encode_varint(stream, zigzagged); in pb_encode_svarint()
664 return pb_encode_varint(stream, tag); in pb_encode_tag()
704 if (!pb_encode_varint(stream, (pb_uint64_t)size)) in pb_encode_string()
727 if (!pb_encode_varint(stream, (pb_uint64_t)size)) in pb_encode_submessage()
766 return pb_encode_varint(stream, value); in pb_enc_bool()
787 return pb_encode_varint(stream, value); in pb_enc_varint()
812 return pb_encode_varint(stream, (pb_uint64_t)value); in pb_enc_varint()
/nanopb-2.7.6/spm_headers/nanopb/
Dpb_encode.h142 bool pb_encode_varint(pb_ostream_t *stream, uint64_t value);
144 bool pb_encode_varint(pb_ostream_t *stream, uint32_t value);
/nanopb-2.7.6/tests/alltypes_callback/
Dencode_alltypes_callback.c16 pb_encode_varint(stream, (intptr_t)*arg); in write_varint()
72 pb_encode_varint(stream, 0) && in write_repeated_varint()
74 pb_encode_varint(stream, 0) && in write_repeated_varint()
76 pb_encode_varint(stream, 0) && in write_repeated_varint()
78 pb_encode_varint(stream, 0) && in write_repeated_varint()
80 pb_encode_varint(stream, (intptr_t)*arg); in write_repeated_varint()
103 pb_encode_varint(stream, 5 * 4) && /* Number of bytes */ in write_repeated_fixed32()
117 pb_encode_varint(stream, 5 * 8) && /* Number of bytes */ in write_repeated_fixed64()
132 pb_encode_varint(stream, 5 * 8) && /* Number of bytes */ in write_repeated_double()
142 pb_encode_varint(stream, 5 * 8) && /* Number of bytes */ in write_repeated_double()
[all …]
/nanopb-2.7.6/tests/regression/issue_249/
Dtest.c13 if (!pb_encode_varint(stream, 1000 + i)) in write_array()
/nanopb-2.7.6/tests/fuzztest/
Drandom_data.c103 pb_encode_varint(&stream, value); in rand_fill_protobuf()
128 pb_encode_varint(&stream, len); in rand_fill_protobuf()
/nanopb-2.7.6/tests/callbacks/
Dencode_callbacks.c24 return pb_encode_varint(stream, 42); in encode_int32()
/nanopb-2.7.6/tests/oneof_callback/
Dencode_oneof.c43 if (!pb_encode_varint(stream, i)) in encode_int32_array()
/nanopb-2.7.6/docs/
Dreference.md557 write, and use [pb_encode_varint](#pb_encode_varint) to write out the
606 #### pb_encode_varint subsubsection
612 bool pb_encode_varint(pb_ostream_t *stream, uint64_t value);
630 (parameters are the same as for [pb_encode_varint](#pb_encode_varint)