Replies: 2 comments
-
@stephentoub, @adamsitnik, @danmoseley |
Beta Was this translation helpful? Give feedback.
0 replies
-
I've moved this to an API proposal. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am working with data that has packed objects that contain header bytes and then a ZLib blob. The DeflateStream class has an internal buffer that advances the BaseStream to fetch data. The problem is that the underlying Stream is then advanced past where the ZLib blob ends. Currently, I have to use reflection to reach down into the object model to get the number of bytes that were not consumed in the buffer so I can re-wind the BaseStream to where the ZLib data ended.
Like so:
Can you add
public int AvailableInput => (int)_zlibStream.AvailIn;
to this:runtime/src/libraries/System.IO.Compression/src/System/IO/Compression/DeflateZLib/Inflater.cs
Line 43 in a3fb0d3
And then add
to this:
runtime/src/libraries/System.IO.Compression/src/System/IO/Compression/DeflateZLib/DeflateStream.cs
Line 120 in a3fb0d3
And then add
to this:
runtime/src/libraries/System.IO.Compression/ref/System.IO.Compression.cs
Line 27 in a3fb0d3
I pulled down the runtime-6.0.8 release and added those snippets. I am able to build and use the new method and it works properly.
Beta Was this translation helpful? Give feedback.
All reactions