We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e60fba0 commit 1ac0384Copy full SHA for 1ac0384
packages/common_crypto/lib/src/tools.dart
@@ -19,9 +19,8 @@ final CommonCryptoBindings bindings = CommonCryptoBindings(_dylib);
19
extension Uint8ListPointer on Uint8List {
20
Pointer<Uint8> get pointer {
21
final pointer = malloc<Uint8>(length);
22
- for (var i = 0; i < length; i++) {
23
- pointer[i] = this[i];
24
- }
+ final data = pointer.asTypedList(length);
+ data.setAll(0, this);
25
return pointer;
26
}
27
0 commit comments