HomeSort by relevance Sort by last modified time
    Searched full:pb_encode_varint (Results 1 - 6 of 6) sorted by null

  /external/nanopb-c/tests/encode_unittests/
encode_unittests.c 25 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/
pb_encode.c 152 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);
pb_encode.h 126 bool pb_encode_varint(pb_ostream_t *stream, uint64_t value);
  /external/nanopb-c/tests/alltypes_callback/
encode_alltypes_callback.c 16 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/
encode_callbacks.c 24 return pb_encode_varint(stream, 42);
  /external/nanopb-c/docs/
reference.rst 436 Writing packed arrays is a little bit more involved: you need to use `pb_encode_tag` and specify `PB_WT_STRING` as the wire type. Then you need to know exactly how much data you are going to write, and use `pb_encode_varint`_ to write out the number of bytes before writing the actual data. Substreams can be used to determine the number of bytes beforehand; see `pb_encode_submessage`_ source code for an example.
472 pb_encode_varint
476 bool pb_encode_varint(pb_ostream_t *stream, uint64_t value);
490 (parameters are the same as for `pb_encode_varint`_
    [all...]

Completed in 82 milliseconds