fromValue static method

ZSTD_EndDirective fromValue(
  1. int value
)

Implementation

static ZSTD_EndDirective fromValue(int value) => switch (value) {
      0 => ZSTD_e_continue,
      1 => ZSTD_e_flush,
      2 => ZSTD_e_end,
      _ => throw ArgumentError('Unknown value for ZSTD_EndDirective: $value'),
    };