OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:pb_read
(Results
1 - 5
of
5
) sorted by null
/external/nanopb-c/tests/decode_unittests/
decode_unittests.c
30
if (!
pb_read
(stream, &byte, 1))
49
COMMENT("Test
pb_read
and pb_istream_t");
50
TEST(
pb_read
(&stream, buffer2, 6))
53
TEST(
pb_read
(&stream, buffer2 + 6, stream.bytes_left))
56
TEST(!
pb_read
(&stream, buffer2, 1))
63
COMMENT("Test
pb_read
with custom callback");
64
TEST(
pb_read
(&stream, buffer, 5))
66
TEST(!
pb_read
(&stream, buffer, 50))
68
TEST(!
pb_read
(&stream, buffer, 5))
70
TEST(
pb_read
(&stream, buffer, 15)
[
all
...]
/external/nanopb-c/
pb_decode.c
94
bool checkreturn
pb_read
(pb_istream_t *stream, uint8_t *buf, size_t count)
function
103
if (!
pb_read
(stream, tmp, 16))
109
return
pb_read
(stream, tmp, count);
231
if (!
pb_read
(stream, &byte, 1))
243
return
pb_read
(stream, NULL, length);
277
case PB_WT_64BIT: return
pb_read
(stream, NULL, 8);
279
case PB_WT_32BIT: return
pb_read
(stream, NULL, 4);
298
if (!
pb_read
(stream, buf, 1)) return false;
304
return
pb_read
(stream, buf, 8);
308
return
pb_read
(stream, buf, 4)
[
all
...]
pb_decode.h
23
* and rely on
pb_read
to verify that no-body reads past bytes_left.
111
bool
pb_read
(pb_istream_t *stream, uint8_t *buf, size_t count);
/external/nanopb-c/tests/callbacks/
decode_callbacks.c
18
if (!
pb_read
(stream, buffer, stream->bytes_left))
/external/nanopb-c/tests/alltypes_callback/
decode_alltypes_callback.c
63
if (len > sizeof(buf) - 1 || !
pb_read
(stream, buf, len))
137
if (len > sizeof(buf) - 1 || !
pb_read
(stream, buf, len))
Completed in 736 milliseconds