Hashes constructor

Hashes(
  1. RustCryptoWorld _world
)

Implementation

Hashes(this._world)
    : _sha1 = _world.library.getComponentFunction(
        'wasm-run-dart:rust-crypto/hashes#sha1',
        const FuncType([('bytes', ListType(U8()))], [('', ListType(U8()))]),
      )!,
      _md5 = _world.library.getComponentFunction(
        'wasm-run-dart:rust-crypto/hashes#md5',
        const FuncType([('bytes', ListType(U8()))], [('', ListType(U8()))]),
      )!,
      _crc32 = _world.library.getComponentFunction(
        'wasm-run-dart:rust-crypto/hashes#crc32',
        const FuncType([('bytes', ListType(U8()))], [('', U32())]),
      )!;