For some time I've been using my fifo type to encode/decode communication data. Recently I noticed there is a byte_stream_reader/writer which actually could replace this: less reinventing the wheel, more unit tests,...
However, unlike the default raw buffer type: uint8_t (or etl:byte) this uses char as its underlying type which I noticed when trying to construct it with a span<const uint8_t>.
Currently I'm using the data + size constructors but this feels like a bit unlucky.
Would it be sensible to fix this?
For some time I've been using my
fifotype to encode/decode communication data. Recently I noticed there is a byte_stream_reader/writer which actually could replace this: less reinventing the wheel, more unit tests,...However, unlike the default raw buffer type:
uint8_t(oretl:byte) this usescharas its underlying type which I noticed when trying to construct it with aspan<const uint8_t>.Currently I'm using the
data + sizeconstructors but this feels like a bit unlucky.Would it be sensible to fix this?