Skip to content

Read unfixed length from ringbuf #5

Description

@Icegrave0391

Hi, is it possible to read an unfixed length packet from the ringbuf?

For example, my packet has the format: [<size: u32> <content: sizeof(size)> ] and its size can not be determined before running.
I tried to call rb.read() two times but it seems that those two read() calls will consume two different packets.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions