MOS Source Code
Loading...
Searching...
No Matches
io_errors.c File Reference
#include <stdio.h>
#include <pb_decode.h>
#include <pb_encode.h>
#include "alltypes.pb.h"
#include "test_helpers.h"
+ Include dependency graph for io_errors.c:

Go to the source code of this file.

Classes

struct  faulty_stream_t
 

Functions

bool read_callback (pb_istream_t *stream, uint8_t *buf, size_t count)
 
bool write_callback (pb_ostream_t *stream, const uint8_t *buf, size_t count)
 
int main ()
 

Function Documentation

◆ read_callback()

bool read_callback ( pb_istream_t * stream,
uint8_t * buf,
size_t count )

Definition at line 17 of file io_errors.c.

Referenced by main().

◆ write_callback()

bool write_callback ( pb_ostream_t * stream,
const uint8_t * buf,
size_t count )

Definition at line 31 of file io_errors.c.

Referenced by main().

◆ main()

int main ( void )

Definition at line 46 of file io_errors.c.

+ Here is the call graph for this function: