memcmp static method
Implementation
static bool memcmp(Uint8List b1, Uint8List b2) {
if (b1.length != b2.length) {
return false;
}
final _b1 = b1.toPointer();
final _b2 = b2.toPointer();
try {
return _sodium.sodium_memcmp(_b1, _b2, b1.length) == 0;
} finally {
calloc.free(_b1);
calloc.free(_b2);
}
}