Skip to content

Getting offset of Decoder #265

Description

@julianmarmier

Hello, is it an explicit implementation choice to abstract the decoder's offset field from the user? I'm currently working with decoding multiple messages over a fixed-length buffer (which is smaller than the stream of messages being read), and it would be useful to have some Decoder.offset function that returns the value of offset in Decoder.t so that the program knows when to reset the buffer with the remaining data.

Perhaps I'm not imagining the right way to decode over a buffer? Otherwise I'll gladly submit a small PR.

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