Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
COBS.h@2:64fdac5efaa1, 2015-07-21 (annotated)
- Committer:
- glansberry
- Date:
- Tue Jul 21 19:31:41 2015 -0400
- Revision:
- 2:64fdac5efaa1
- Parent:
- 0:736db4334c89
Modified to return an error on decoding if the buffer will be overrun
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| glansberry | 0:736db4334c89 | 1 | #ifndef _COBS_H |
| glansberry | 0:736db4334c89 | 2 | #define _COBS_H |
| glansberry | 0:736db4334c89 | 3 | |
| glansberry | 0:736db4334c89 | 4 | class COBS{ |
| glansberry | 0:736db4334c89 | 5 | |
| glansberry | 0:736db4334c89 | 6 | public: |
| glansberry | 0:736db4334c89 | 7 | void StuffData(unsigned char *ptr, unsigned long length, unsigned char *dst); |
| glansberry | 2:64fdac5efaa1 | 8 | int UnStuffData(unsigned char *ptr, unsigned long length, unsigned char *dst); |
| glansberry | 0:736db4334c89 | 9 | |
| glansberry | 0:736db4334c89 | 10 | }; |
| glansberry | 2:64fdac5efaa1 | 11 | #endif |