@@ -71,22 +71,27 @@ Struct20BytesHomogeneousInt32 dartPassStructRecursive(
7171 return result;
7272}
7373
74- final functionPointer = Pointer .fromFunction<
75- Struct20BytesHomogeneousInt32 Function (Int64 , Struct20BytesHomogeneousInt32 )
76- > (dartPassStructRecursive);
77-
78- final cPassStructRecursive = ffiTestFunctions.lookupFunction<
79- Struct20BytesHomogeneousInt32 Function (
80- Int64 recursionCounter,
81- Struct20BytesHomogeneousInt32 struct,
82- Pointer callbackAddress,
83- ),
84- Struct20BytesHomogeneousInt32 Function (
85- int recursionCounter,
86- Struct20BytesHomogeneousInt32 ,
87- Pointer ,
88- )
89- > ("PassStructRecursive" );
74+ final functionPointer =
75+ Pointer .fromFunction<
76+ Struct20BytesHomogeneousInt32 Function (
77+ Int64 ,
78+ Struct20BytesHomogeneousInt32 ,
79+ )
80+ > (dartPassStructRecursive);
81+
82+ final cPassStructRecursive = ffiTestFunctions
83+ .lookupFunction<
84+ Struct20BytesHomogeneousInt32 Function (
85+ Int64 recursionCounter,
86+ Struct20BytesHomogeneousInt32 struct,
87+ Pointer callbackAddress,
88+ ),
89+ Struct20BytesHomogeneousInt32 Function (
90+ int recursionCounter,
91+ Struct20BytesHomogeneousInt32 ,
92+ Pointer ,
93+ )
94+ > ("PassStructRecursive" );
9095
9196Struct8BytesNestedInt typedDataBackedStruct =
9297 Pointer <Struct8BytesNestedInt >.fromAddress (0 ).ref;
@@ -101,10 +106,15 @@ final _receiveStructByValuePointer =
101106 _receiveStructByValue,
102107 );
103108
104- final _invokeReceiveStructByValue = ffiTestFunctions.lookupFunction<
105- Void Function (Pointer <NativeFunction <Void Function (Struct8BytesNestedInt )>>),
106- void Function (Pointer <NativeFunction <Void Function (Struct8BytesNestedInt )>>)
107- > ("CallbackWithStruct" );
109+ final _invokeReceiveStructByValue = ffiTestFunctions
110+ .lookupFunction<
111+ Void Function (
112+ Pointer <NativeFunction <Void Function (Struct8BytesNestedInt )>>,
113+ ),
114+ void Function (
115+ Pointer <NativeFunction <Void Function (Struct8BytesNestedInt )>>,
116+ )
117+ > ("CallbackWithStruct" );
108118
109119void testCopyLogic () {
110120 _invokeReceiveStructByValue (_receiveStructByValuePointer);
0 commit comments