{"action":"created","issue":{"url":"https://api.github.com/repos/alexcrichton/flate2-rs/issues/26","labels_url":"https://api.github.com/repos/alexcrichton/flate2-rs/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/alexcrichton/flate2-rs/issues/26/comments","events_url":"https://api.github.com/repos/alexcrichton/flate2-rs/issues/26/events","html_url":"https://github.com/alexcrichton/flate2-rs/issues/26","id":105478176,"number":26,"title":"Add a way to reuse Readers/Writers","user":{"login":"thinkofdeath","id":774399,"avatar_url":"https://avatars.githubusercontent.com/u/774399?v=3","gravatar_id":"","url":"https://api.github.com/users/thinkofdeath","html_url":"https://github.com/thinkofdeath","followers_url":"https://api.github.com/users/thinkofdeath/followers","following_url":"https://api.github.com/users/thinkofdeath/following{/other_user}","gists_url":"https://api.github.com/users/thinkofdeath/gists{/gist_id}","starred_url":"https://api.github.com/users/thinkofdeath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thinkofdeath/subscriptions","organizations_url":"https://api.github.com/users/thinkofdeath/orgs","repos_url":"https://api.github.com/users/thinkofdeath/repos","events_url":"https://api.github.com/users/thinkofdeath/events{/privacy}","received_events_url":"https://api.github.com/users/thinkofdeath/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-08T22:00:13Z","updated_at":"2015-09-09T17:36:53Z","closed_at":null,"body":"For my case the zlib ones.\r\n\r\nEach reader (and I assume Writer) allocates a 32kb buffer internally, it would be nice to have a way to reset an old reader so that we don't have to allocate that buffer every time.\r\nBy the looks of it mz_deflateReset exists for this case."},"comment":{"url":"https://api.github.com/repos/alexcrichton/flate2-rs/issues/comments/138986094","html_url":"https://github.com/alexcrichton/flate2-rs/issues/26#issuecomment-138986094","issue_url":"https://api.github.com/repos/alexcrichton/flate2-rs/issues/26","id":138986094,"user":{"login":"alexcrichton","id":64996,"avatar_url":"https://avatars.githubusercontent.com/u/64996?v=3","gravatar_id":"","url":"https://api.github.com/users/alexcrichton","html_url":"https://github.com/alexcrichton","followers_url":"https://api.github.com/users/alexcrichton/followers","following_url":"https://api.github.com/users/alexcrichton/following{/other_user}","gists_url":"https://api.github.com/users/alexcrichton/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcrichton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcrichton/subscriptions","organizations_url":"https://api.github.com/users/alexcrichton/orgs","repos_url":"https://api.github.com/users/alexcrichton/repos","events_url":"https://api.github.com/users/alexcrichton/events{/privacy}","received_events_url":"https://api.github.com/users/alexcrichton/received_events","type":"User","site_admin":false},"created_at":"2015-09-09T17:36:53Z","updated_at":"2015-09-09T17:36:53Z","body":"Is the use case here that you've got multiple zlib streams concatenated on one stream? It seems like you'd not only want to reset the inner miniz state but also swap out the wrapped I/O stream?"}}