Deflate constructor

Deflate(
  1. CompressionRsWorld _world
)

Implementation

Deflate(this._world)
  : _deflateCompress = _world.library.getComponentFunctionWorker(
      'compression-rs-namespace:compression-rs/deflate#deflate-compress',
      const FuncType(
        [('input', Input._spec)],
        [('', ResultType(ListType(U8()), StringType()))],
      ),
    )!,
    _deflateDecompress = _world.library.getComponentFunctionWorker(
      'compression-rs-namespace:compression-rs/deflate#deflate-decompress',
      const FuncType(
        [('input', Input._spec)],
        [('', ResultType(ListType(U8()), StringType()))],
      ),
    )!,
    _deflateCompressFile = _world.library.getComponentFunctionWorker(
      'compression-rs-namespace:compression-rs/deflate#deflate-compress-file',
      const FuncType(
        [('input', Input._spec), ('output-path', StringType())],
        [('', ResultType(U64(), StringType()))],
      ),
    )!,
    _deflateDecompressFile = _world.library.getComponentFunctionWorker(
      'compression-rs-namespace:compression-rs/deflate#deflate-decompress-file',
      const FuncType(
        [('input', Input._spec), ('output-path', StringType())],
        [('', ResultType(U64(), StringType()))],
      ),
    )!;