Searched refs:pb_encode_varint (Results 1 - 5 of 5) sorted by relevance

/external/nanopb-c/tests/encode_unittests/
H A Dencode_unittests.c25 return pb_encode_varint(stream, value);
35 return pb_encode_varint(stream, *state);
78 COMMENT("Test pb_encode_varint")
79 TEST(WRITES(pb_encode_varint(&s, 0), "\0"));
80 TEST(WRITES(pb_encode_varint(&s, 1), "\1"));
81 TEST(WRITES(pb_encode_varint(&s, 0x7F), "\x7F"));
82 TEST(WRITES(pb_encode_varint(&s, 0x80), "\x80\x01"));
83 TEST(WRITES(pb_encode_varint(&s, UINT32_MAX), "\xFF\xFF\xFF\xFF\x0F"));
84 TEST(WRITES(pb_encode_varint(&s, UINT64_MAX), "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x01"));
/external/nanopb-c/
H A Dpb_encode.h126 bool pb_encode_varint(pb_ostream_t *stream, uint64_t value);
H A Dpb_encode.c152 if (!pb_encode_varint(stream, (uint64_t)size))
395 bool checkreturn pb_encode_varint(pb_ostream_t *stream, uint64_t value) function
422 return pb_encode_varint(stream, zigzagged);
462 return pb_encode_varint(stream, tag);
499 if (!pb_encode_varint(stream, (uint64_t)size))
522 if (!pb_encode_varint(stream, (uint64_t)size))
572 return pb_encode_varint(stream, (uint64_t)value);
586 return pb_encode_varint(stream, value);
/external/nanopb-c/tests/alltypes_callback/
H A Dencode_alltypes_callback.c16 pb_encode_varint(stream, (long)*arg);
60 pb_encode_varint(stream, 0) &&
62 pb_encode_varint(stream, 0) &&
64 pb_encode_varint(stream, 0) &&
66 pb_encode_varint(stream, 0) &&
68 pb_encode_varint(stream, (long)*arg);
91 pb_encode_varint(stream, 5 * 4) && /* Number of bytes */
105 pb_encode_varint(stream, 5 * 8) && /* Number of bytes */
/external/nanopb-c/tests/callbacks/
H A Dencode_callbacks.c24 return pb_encode_varint(stream, 42);

Completed in 285 milliseconds