Commit graph

2 commits

Author SHA1 Message Date
Felix Lelchuk
1eb9b25c7e Fix cursor: wrapping_add for ptr, immutable sock 2023-06-23 13:59:54 +02:00
Felix Lelchuk
1f6a8a290c Allow truncated RawDevice::read_frame()
- `RawDevice::read_frame()` succeeds with a receive buffer smaller than the frame.
- Introduce `RxCursor` and `TxCursor` to track/update RX/TX buffer pointers making
  it easier to reason about functions such as `read_frame` / `write_frame`.
2023-06-22 11:21:20 +02:00