Octodiff icon indicating copy to clipboard operation
Octodiff copied to clipboard

Support for non seekable streams as NetworkStream.

Open pack7df opened this issue 3 years ago • 0 comments

SignatureReader for instance, it makes use of Length and Position of stream. If the stream is a NetworkStream it would throw an exception. What i did to support it, is to send an empty end chunk in the client and create a copy of the SignatureReader class but removing that lines using position and length, and using the last chunk as the end of stream. BinaryDeltaReader does something like this also.

pack7df avatar Aug 22 '22 20:08 pack7df