Gzip constructor

Gzip(
  1. CompressionRsWorld _world
)

Implementation

Gzip(this._world)
  : _gzipCompress = _world.library.getComponentFunctionWorker(
      'compression-rs-namespace:compression-rs/gzip#gzip-compress',
      const FuncType(
        [('input', Input._spec)],
        [('', ResultType(ListType(U8()), StringType()))],
      ),
    )!,
    _gzipDecompress = _world.library.getComponentFunctionWorker(
      'compression-rs-namespace:compression-rs/gzip#gzip-decompress',
      const FuncType(
        [('input', Input._spec)],
        [('', ResultType(ListType(U8()), StringType()))],
      ),
    )!,
    _gzipCompressFile = _world.library.getComponentFunctionWorker(
      'compression-rs-namespace:compression-rs/gzip#gzip-compress-file',
      const FuncType(
        [('input', Input._spec), ('output-path', StringType())],
        [('', ResultType(U64(), StringType()))],
      ),
    )!,
    _gzipDecompressFile = _world.library.getComponentFunctionWorker(
      'compression-rs-namespace:compression-rs/gzip#gzip-decompress-file',
      const FuncType(
        [('input', Input._spec), ('output-path', StringType())],
        [('', ResultType(U64(), StringType()))],
      ),
    )!;