mirror of
https://github.com/MAGICGrants/flutter_libsparkmobile.git
synced 2026-01-09 21:17:56 -05:00
malloc Int size
This commit is contained in:
@@ -20,8 +20,7 @@ class FlutterLibsparkmobile {
|
||||
Future<String> getAddress(
|
||||
List<int> keyData, int index, int diversifier) async {
|
||||
// Allocate space for the key data on the native heap.
|
||||
final keyDataPointer =
|
||||
malloc.allocate<Int>(keyData.length * sizeOf<Int32>());
|
||||
final keyDataPointer = malloc.allocate<Int>(keyData.length);
|
||||
|
||||
// Copy the key data into the allocated space.
|
||||
for (int i = 0; i < keyData.length; i++) {
|
||||
|
||||
Reference in New Issue
Block a user