Skip to content

Commit

Permalink
Fix IVectorView
Browse files Browse the repository at this point in the history
Signed-off-by: Sunbreak <sunbreak.wang@gmail.com>
  • Loading branch information
Sunbreak committed Jun 19, 2021
1 parent cd8696c commit 4134560
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/src/com/IVectorView`1.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ typedef _GetAt_Dart = int Function(
typedef _get_Size_Native = Int32 Function(Pointer obj, Pointer<Uint32> value);
typedef _get_Size_Dart = int Function(Pointer obj, Pointer<Uint32> value);

typedef _IndexOf_Native = Int32 Function(Pointer obj, Pointer value, ____ index,
typedef _IndexOf_Native = Int32 Function(Pointer obj, Pointer value, Pointer<Uint32> index,
Pointer< /* Boolean */ Uint8> result);
typedef _IndexOf_Dart = int Function(Pointer obj, Pointer value, ____ index,
typedef _IndexOf_Dart = int Function(Pointer obj, Pointer value, Pointer<Uint32> index,
Pointer< /* Boolean */ Uint8> result);

typedef _GetMany_Native = Int32 Function(
Pointer obj, Uint32 startIndex, ____ items, Pointer<Uint32> result);
Pointer obj, Uint32 startIndex, Pointer<Pointer> items, Pointer<Uint32> result);
typedef _GetMany_Dart = int Function(
Pointer obj, int startIndex, ____ items, Pointer<Uint32> result);
Pointer obj, int startIndex, Pointer<Pointer> items, Pointer<Uint32> result);

/// {@category Interface}
/// {@category winrt}
Expand Down Expand Up @@ -75,14 +75,14 @@ class IVectorView<T> {
}

int IndexOf(
Pointer value, ____ index, Pointer< /* Boolean */ Uint8> result) =>
Pointer value, Pointer<Uint32> index, Pointer< /* Boolean */ Uint8> result) =>
ptr.ref.lpVtbl.value
.elementAt(8)
.cast<Pointer<NativeFunction<_IndexOf_Native>>>()
.value
.asFunction<_IndexOf_Dart>()(ptr.ref.lpVtbl, value, index, result);

int GetMany(int startIndex, ____ items, Pointer<Uint32> result) => ptr
int GetMany(int startIndex, Pointer<Pointer> items, Pointer<Uint32> result) => ptr
.ref.lpVtbl.value
.elementAt(9)
.cast<Pointer<NativeFunction<_GetMany_Native>>>()
Expand Down

0 comments on commit 4134560

Please sign in to comment.