A simple, lightweight implementation of RFC 1055 SLIP encoding for Rust!
SLIP (serial line internet protocol) encoding is a very simple way of packaging so it can be transmitted to some other receiver. I'd highly recommend reading the Wikipedia article on the topic for some more insight!
SLIP is used in encoding data to be sent and decoding data to be read.
NOTE: Each packet will start with an END
(0xC0) byte. This makes no difference to the protocol, as long as it can tell where packets are separated.
```rust use simple_slip::encode;
let input: Vec
let result: Vec
assert_eq!(result, expected); ```
NOTE: Each packet will start decoding from the first occurrence of the END
(0xC0) byte.
The following data array would only decode 0x01
as it's the only byte after the END
(0xC0) byte:
[0xA1, 0xA2, 0xA3, 0xC0, 0x01] --decode--> [0x01]
```rust use simple_slip::decode;
let input: Vec
let result: Vec
assert_eq!(result, expected); ```