murmur3 2.0.0 copy "murmur3: ^2.0.0" to clipboard
murmur3: ^2.0.0 copied to clipboard

MurmurHash v3 for Dart & Flutter platforms. Supports array and stream data sources, on native and browser environments.

Pub Package Dart Platforms Flutter Platforms

License Null Safety Dart Style Pub Points Likes Popularity

Last Commit Dart Workflow Code Lines Code Coverage

murmur3 #

MurmurHash v3 for Dart & Flutter.

Supports array and stream data sources, on native and browser platforms.

Example #

void main() async {
  final hash32 = murmur3a('div200').toHex(32);
  print('murmur3a(\'div2000\') = 0x$hash32');

  final hash128x64 = murmur3f('div200').toHex(128);
  print('murmur3f(\'div2000\') = 0x$hash128x64');

  final pkBytes = Stream.fromIterable([0x08, 'div200', 0x00]);
  final pkHash = encodeHash((await murmur3a(pkBytes)).toDouble());
  print('div200 pk hash = ${pkHash.map((b) => b.toHex(8)).join()}');
}
2
likes
160
pub points
72%
popularity

Publisher

unverified uploader

MurmurHash v3 for Dart & Flutter platforms. Supports array and stream data sources, on native and browser environments.

Repository

Documentation

API reference

License

MIT (license)

More

Packages that depend on murmur3