Skip to content

Conversation

armandas
Copy link

From documentation, it's not obvious how to decode the delimiter given the larger buffer. I think it would be helpful if there was an example.

Looking through the issues (e.g. #285), I found out that using Bytes or BytesMut instead of &[u8] makes everything work.

I pieced this example from what I could find in the issues, so let me know if this is not the most idiomatic way and I will update the PR.

@armandas armandas changed the title Add example for decode_length_delimiter dixdd example for decode_length_delimiter Aug 11, 2025
@armandas armandas changed the title dixdd example for decode_length_delimiter docs: add example for decode_length_delimiter Aug 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant