First steps to prove cobs decoder
This commit is contained in:
parent
40e9fb8153
commit
447d084d79
4 changed files with 118 additions and 27 deletions
|
|
@ -17,7 +17,11 @@ ssize_t cobs_decode(char *dst, size_t dstlen, char *src, size_t srclen);
|
|||
|
||||
int cobs_encode_incremental(void *f, int (*output)(void *, char), char *src, size_t srclen);
|
||||
|
||||
/*@ requires \valid(state);
|
||||
ensures state->p == 0 && state->c == 0;
|
||||
assigns *state;
|
||||
@*/
|
||||
void cobs_decode_incremental_initialize(struct cobs_decode_state *state);
|
||||
int cobs_decode_incremental(struct cobs_decode_state *state, char *dst, size_t dstlen, char src);
|
||||
int cobs_decode_incremental(struct cobs_decode_state *state, unsigned char *dst, size_t dstlen, unsigned char src);
|
||||
|
||||
#endif//__COBS_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue