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.
Hello, is it an explicit implementation choice to abstract the decoder's
offsetfield 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 someDecoder.offsetfunction that returns the value ofoffsetinDecoder.tso 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.