Skip to content

Consider standardizing the Read() Method in ZInputStream #136

@kami-poi

Description

@kami-poi

I'm using this project in an ASP.net core application.
To process data I should use some async Stream methods. In Stream.ReadAsync it will call Read method in a loop and expect 0 as return when nothing can read. When -1 returned, it will throw a ArgumentOutOfRangeException and block the processing of request. So I hope you can standardization the return value to make it matching C# Language Specification. Tkanks.

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