10 stream->bytes_left = 0;
25 memset(stream, 0,
sizeof(*stream));
27 stream->
stream.bytes_left = SIZE_MAX;
28 stream->
stream.state = stream;
bool flakystream_callback(pb_istream_t *stream, pb_byte_t *buf, size_t count)
void flakystream_init(flakystream_t *stream, const uint8_t *buffer, size_t msglen, size_t fail_after)
#define PB_RETURN_ERROR(stream, msg)
static void * memcpy(void *s1, const void *s2, size_t n)
static void * memset(void *s, int c, size_t n)