MOS Source Code
Loading...
Searching...
No Matches
flakystream.h
Go to the documentation of this file.
1
/* This module implements a custom input stream that can be set to give IO error
2
* at specific point. */
3
4
#ifndef FLAKYSTREAM_H
5
#define FLAKYSTREAM_H
6
7
#include <pb_decode.h>
8
9
typedef
struct
{
10
pb_istream_t
stream
;
11
const
uint8_t
*
buffer
;
12
size_t
position
;
13
size_t
msglen
;
14
size_t
fail_after
;
15
}
flakystream_t
;
16
17
void
flakystream_init
(
flakystream_t
*stream,
const
uint8_t
*
buffer
,
size_t
msglen,
size_t
fail_after);
18
19
#endif
flakystream_init
void flakystream_init(flakystream_t *stream, const uint8_t *buffer, size_t msglen, size_t fail_after)
Definition
flakystream.c:23
uint8_t
unsigned char uint8_t
Definition
pb_syshdr.h:20
flakystream_t
Definition
flakystream.h:9
flakystream_t::fail_after
size_t fail_after
Definition
flakystream.h:14
flakystream_t::position
size_t position
Definition
flakystream.h:12
flakystream_t::msglen
size_t msglen
Definition
flakystream.h:13
flakystream_t::stream
pb_istream_t stream
Definition
flakystream.h:10
flakystream_t::buffer
const uint8_t * buffer
Definition
flakystream.h:11
buffer
static char buffer[2048]
Definition
test_printf.c:7
libs
nanopb
nanopb
tests
fuzztest
flakystream.h
Generated on Sun Sep 1 2024 18:22:52 for MOS Source Code by
1.12.0