Skip to content

Best way to read from a FIFO #1108

@twam

Description

@twam

I'm receiving a constant stream of data from somewhere (it's RTT data from a debugger, but doesn't matter), which I want to decode.
Basically I have a function which gets called with a bytes every time data is received.

What's the best/expected way how to parse something like this? I thought of something like a FIFO object which I could pass to parse_stream, but before implementing something of my own I thought that there must be already a proven solution, as this seems a quite common problem to me.

Any hints where to look?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions