/nanopb-2.7.6/tests/fuzztest/ |
D | flakystream.c | 6 flakystream_t *state = stream->state; in flakystream_callback() local 8 if (state->position + count > state->msglen) in flakystream_callback() 13 else if (state->position + count > state->fail_after) in flakystream_callback() 18 memcpy(buf, state->buffer + state->position, count); in flakystream_callback() 19 state->position += count; in flakystream_callback() 28 stream->stream.state = stream; in flakystream_init()
|
/nanopb-2.7.6/tests/io_errors/ |
D | io_errors.c | 19 faulty_stream_t *state = stream->state; in read_callback() local 23 if (state->fail_after == 0) in read_callback() 25 state->fail_after--; in read_callback() 26 *buf++ = *state->buffer++; in read_callback() 33 faulty_stream_t *state = stream->state; in write_callback() local 37 if (state->fail_after == 0) in write_callback() 39 state->fail_after--; in write_callback() 40 *state->buffer++ = *buf++; in write_callback() 66 stream.state = &fs; in main() 84 stream.state = &fs; in main() [all …]
|
/nanopb-2.7.6/tests/basic_stream/ |
D | encode_stream.c | 12 FILE *file = (FILE*) stream->state; in streamcallback() 27 stream.state = stdout; in main()
|
D | decode_stream.c | 60 FILE *file = (FILE*)stream->state; in callback() 77 stream.state = stdin; in main()
|
/nanopb-2.7.6/tests/regression/GHSA-gcx3-7m76-287p/ |
D | test.c | 10 FILE *file = (FILE*)stream->state; in stream_callback() 29 stream.state = stdin; in main()
|
/nanopb-2.7.6/examples/network_server/ |
D | common.c | 13 int fd = (intptr_t)stream->state; in write_callback() 19 int fd = (intptr_t)stream->state; in read_callback()
|
/nanopb-2.7.6/tests/site_scons/platforms/avr/ |
D | run_test.c | 157 g_avr->state = cpu_Stopped; in main() 176 int state = avr_run(g_avr); in main() local 177 if (state == cpu_Done) in main() 180 if (state == cpu_Crashed) in main()
|
/nanopb-2.7.6/tests/raw_decode/ |
D | raw_decode.c | 19 FILE *file = (FILE*)stream->state; in callback() 185 stream.state = stdin; in main()
|
/nanopb-2.7.6/tests/encode_unittests/ |
D | encode_unittests.c | 32 uint32_t *state = (uint32_t*)arg; in crazyfieldcallback() local 33 *state <<= 8; in crazyfieldcallback() 36 return pb_encode_varint(stream, *state); in crazyfieldcallback() 374 uint32_t state = 1; in main() local 386 msg.submsg.data.arg = &state; in main() 388 msg2.submsg.submsg.data.arg = &state; in main() 391 state = 1; in main()
|
/nanopb-2.7.6/ |
D | pb_decode.c | 73 const pb_byte_t *source = (const pb_byte_t*)stream->state; in buf_read() 74 stream->state = (pb_byte_t*)stream->state + count; in buf_read() 133 *buf = *(const pb_byte_t*)stream->state; in pb_readbyte() 134 stream->state = (pb_byte_t*)stream->state + 1; in pb_readbyte() 149 void *state; in pb_istream_from_buffer() member 151 } state; in pb_istream_from_buffer() local 157 state.c_state = buf; in pb_istream_from_buffer() 158 stream.state = state.state; in pb_istream_from_buffer() 381 stream->state = substream->state; in pb_close_string_substream()
|
D | pb_encode.h | 40 void *state; /* Free field for use by callback implementation. */ member
|
D | pb_encode.c | 55 pb_byte_t *dest = (pb_byte_t*)stream->state; in buf_write() 56 stream->state = dest + count; in buf_write() 72 stream.state = buf; in pb_ostream_from_buffer() 739 substream.state = stream->state; in pb_encode_submessage() 749 stream->state = substream.state; in pb_encode_submessage()
|
D | pb_decode.h | 40 void *state; /* Free field for use by callback implementation */ member
|
/nanopb-2.7.6/spm_headers/nanopb/ |
D | pb_encode.h | 40 void *state; /* Free field for use by callback implementation. */ member
|
D | pb_decode.h | 40 void *state; /* Free field for use by callback implementation */ member
|
/nanopb-2.7.6/tests/decode_unittests/ |
D | decode_unittests.c | 15 if (stream->state != NULL) in stream_callback() 69 stream.state = (void*)1; /* Simulated error return from callback */ in main() 71 stream.state = NULL; in main()
|
/nanopb-2.7.6/docs/ |
D | concepts.md | 58 2) Use state to store your own data, such as a file descriptor. 74 void *state; 103 FILE *file = (FILE*) stream->state; 123 void *state; 137 FILE *file = (FILE*)stream->state; 340 data type used for callback state. Then the generator will automatically
|
D | migration.md | 214 libraries allow explicit null state for submessages. 314 parent stream would be put into an incorrect state.
|
D | reference.md | 455 stores the pointer in stream `state` field. : 954 length, and its callback function and state the same as the parent stream. 968 This function copies back the state from the substream to the parent stream,
|