Skip to content

Fails with NotEnough error in arbitrary parsing functions #5

Description

@joshtriplett

As far as I can tell, when cbor_event deserializes from a BufRead instance, it only calls fill_buf when calling get (and then only once), not when calling advance. So, any arbitrary parsing function may potentially return a NotEnough error in the middle of its parsing, requiring any higher-level protocol parsing built atop that to handle any parsing function failing with NotEnough and retry after fetching more data.

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions