Skip to content

ZstdSharp.Zstd.get_CompressionLevels raises ArgumentOutOfRangeException: ArgumentOutOfRange_NeedNonNegNum #2

@hu-ak

Description

@hu-ak

Hi,
Zstd.CompressionLevels.Start.Value raises

ArgumentOutOfRangeException: ArgumentOutOfRange_NeedNonNegNum Parameter name: value
  at System.Index.op_Implicit (System.Int32 value) 
  at ZstdSharp.Zstd.get_CompressionLevels ()

The reason is that System.Range uses System.Index for Start and End, so accept only nonNegative values, but ZSTD_minCLevel() returns a negative value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions