This PR extracts a Buffer struct from Pipe that takes care of message fragmentation and dispatch, while Pipe implements the USB communication. This allows us to use the message buffer in other contexts, for example for unit tests, and also makes it possible to test and fuzz its functionality directly.
This PR extracts a
Buffer
struct fromPipe
that takes care of message fragmentation and dispatch, whilePipe
implements the USB communication. This allows us to use the message buffer in other contexts, for example for unit tests, and also makes it possible to test and fuzz its functionality directly.