Skip to content

PipeStream not supporting Read offsets > 0 #440

Closed
@Noggog

Description

@Noggog

PipeStream seems to throw an exception when Read(byte[] buffer, int offset, int count) is called, with an offset above zero.
https://github.com/sshnet/SSH.NET/blob/master/src/Renci.SshNet/Common/PipeStream.cs#L183

Is there a reason it cannot support this? Seems like it would be easy enough to modify the for loop to start at the desired offset, and still calculate the amount read properly.

If it's just something that hasn't been done yet, I can perhaps do the work, but I wanted to check first to see if there's some edge case that makes this feature N/A that I'm not seeing.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions