[System.IO.Compression] Fixed Zip entry stream length/position getters in Update...
authorJoão Matos <joao@tritao.eu>
Thu, 30 Jun 2016 12:58:27 +0000 (13:58 +0100)
committerJoão Matos <joao@tritao.eu>
Thu, 30 Jun 2016 13:15:52 +0000 (14:15 +0100)
commit4fc860ec217b121bda019de9b182a48ad9642f8d
tree246d6b829e38f89de8587aa757ee0b8cc054164c
parentc167f3abe391923656db51f7d5db4c6d0eaef951
[System.IO.Compression] Fixed Zip entry stream length/position getters in Update mode.

This does away with the lazy writeable entry scheme in Update mode and converts the stream to be writeable when its opened in Update mode.

From local testing, .NET does the same in this case.

Fixes another issue reported by @Numpsy in https://github.com/OfficeDev/Open-XML-SDK/issues/64.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=42274.
mcs/class/System.IO.Compression/Test/System.IO.Compression/ZipTest.cs
mcs/class/System.IO.Compression/ZipArchiveEntry.cs