Lz4 constructor
Lz4(
- CompressionRsWorld _world
Implementation
Lz4(this._world)
: _lz4Compress = _world.library.getComponentFunctionWorker(
'compression-rs-namespace:compression-rs/lz4#lz4-compress',
const FuncType([('input', Input._spec)],
[('', ResultType(ListType(U8()), StringType()))]),
)!,
_lz4Decompress = _world.library.getComponentFunctionWorker(
'compression-rs-namespace:compression-rs/lz4#lz4-decompress',
const FuncType([('input', Input._spec)],
[('', ResultType(ListType(U8()), StringType()))]),
)!,
_lz4CompressFile = _world.library.getComponentFunctionWorker(
'compression-rs-namespace:compression-rs/lz4#lz4-compress-file',
const FuncType(
[('input', Input._spec), ('output-path', StringType())],
[('', ResultType(U64(), StringType()))]),
)!,
_lz4DecompressFile = _world.library.getComponentFunctionWorker(
'compression-rs-namespace:compression-rs/lz4#lz4-decompress-file',
const FuncType(
[('input', Input._spec), ('output-path', StringType())],
[('', ResultType(U64(), StringType()))]),
)!;