Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

files with multiple "messagepack documents"? #16

Open
timo opened this issue Aug 24, 2019 · 0 comments
Open

files with multiple "messagepack documents"? #16

timo opened this issue Aug 24, 2019 · 0 comments

Comments

@timo
Copy link
Contributor

timo commented Aug 24, 2019

I have a file that's just loads of messagepack stuff in a row, and currently i'm using an ugly hack that feeds it to the streaming unpacker's input piece by piece
could there be a way to get the position in the input buffer after an object is emitted, or to get a subbuf of the leftovers? from my work on Compress::Zstd I can say that it's valuable to have a way to find the exact place where one chunk of data ends, but the API of Data::MessagePack is probably too different. After all, Compress::Zstd requires you to feed the decompressor with more data over and over and ask "did it finish in the mean time?".

Maybe you have an idea how to make all of this work sensibly.

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

No branches or pull requests

1 participant