Zlib constructor

Zlib(
  1. CompressionRsWorld _world
)

Implementation

Zlib(this._world)
    : _zlibCompress = _world.library.getComponentFunctionWorker(
        'compression-rs-namespace:compression-rs/zlib#zlib-compress',
        const FuncType([('input', Input._spec)],
            [('', ResultType(ListType(U8()), StringType()))]),
      )!,
      _zlibDecompress = _world.library.getComponentFunctionWorker(
        'compression-rs-namespace:compression-rs/zlib#zlib-decompress',
        const FuncType([('input', Input._spec)],
            [('', ResultType(ListType(U8()), StringType()))]),
      )!,
      _zlibCompressFile = _world.library.getComponentFunctionWorker(
        'compression-rs-namespace:compression-rs/zlib#zlib-compress-file',
        const FuncType(
            [('input', Input._spec), ('output-path', StringType())],
            [('', ResultType(U64(), StringType()))]),
      )!,
      _zlibDecompressFile = _world.library.getComponentFunctionWorker(
        'compression-rs-namespace:compression-rs/zlib#zlib-decompress-file',
        const FuncType(
            [('input', Input._spec), ('output-path', StringType())],
            [('', ResultType(U64(), StringType()))]),
      )!;