15 size_t cursor = (
size_t)(uintptr_t)stream->state;
19 stream->bytes_left = 0;
26 stream->state = (
void*)(uintptr_t)cursor;
37 TestMessage msg = TestMessage_init_zero;
46 TestMessage msg = TestMessage_init_zero;
bool stream_callback(pb_istream_t *stream, uint8_t *buf, size_t count)
bool stream_callback(pb_istream_t *stream, uint8_t *buf, size_t count)
const uint8_t input_data[]
bool pb_decode(pb_istream_t *stream, const pb_msgdesc_t *fields, void *dest_struct)
pb_istream_t pb_istream_from_buffer(const pb_byte_t *buf, size_t msglen)
static void * memcpy(void *s1, const void *s2, size_t n)