@@ -103,7 +103,7 @@ class Native32BitLibraryFacade : INativeLibraryFacade
103
103
private static extern int mdb_cursor_get ( IntPtr cursor , ref ValueStructure key , ref ValueStructure data , CursorOperation op ) ;
104
104
105
105
[ DllImport ( LibraryName , CallingConvention = CallingConvention . Cdecl ) ]
106
- private static extern int mdb_cursor_put ( IntPtr cursor , ValueStructure key , ValueStructure data , PutOptions flags ) ;
106
+ private static extern int mdb_cursor_put ( IntPtr cursor , ref ValueStructure key , ref ValueStructure data , PutOptions flags ) ;
107
107
108
108
[ DllImport ( LibraryName , CallingConvention = CallingConvention . Cdecl ) ]
109
109
private static extern int mdb_cursor_del ( IntPtr cursor , CursorDeleteOption flags ) ;
@@ -263,9 +263,9 @@ int INativeLibraryFacade.mdb_cursor_get(IntPtr cursor, ref ValueStructure key, r
263
263
return Native32BitLibraryFacade . mdb_cursor_get ( cursor , ref key , ref data , op ) ;
264
264
}
265
265
266
- int INativeLibraryFacade . mdb_cursor_put ( IntPtr cursor , ValueStructure key , ValueStructure data , PutOptions flags )
266
+ int INativeLibraryFacade . mdb_cursor_put ( IntPtr cursor , ref ValueStructure key , ref ValueStructure data , PutOptions flags )
267
267
{
268
- return Native32BitLibraryFacade . mdb_cursor_put ( cursor , key , data , flags ) ;
268
+ return Native32BitLibraryFacade . mdb_cursor_put ( cursor , ref key , ref data , flags ) ;
269
269
}
270
270
271
271
int INativeLibraryFacade . mdb_cursor_del ( IntPtr cursor , CursorDeleteOption flags )
@@ -366,7 +366,7 @@ class Native64BitLibraryFacade : INativeLibraryFacade
366
366
private static extern int mdb_cursor_get ( IntPtr cursor , ref ValueStructure key , ref ValueStructure data , CursorOperation op ) ;
367
367
368
368
[ DllImport ( LibraryName , CallingConvention = CallingConvention . Cdecl ) ]
369
- private static extern int mdb_cursor_put ( IntPtr cursor , ValueStructure key , ValueStructure data , PutOptions flags ) ;
369
+ private static extern int mdb_cursor_put ( IntPtr cursor , ref ValueStructure key , ref ValueStructure data , PutOptions flags ) ;
370
370
371
371
[ DllImport ( LibraryName , CallingConvention = CallingConvention . Cdecl ) ]
372
372
private static extern int mdb_cursor_del ( IntPtr cursor , CursorDeleteOption flags ) ;
@@ -515,9 +515,9 @@ int INativeLibraryFacade.mdb_cursor_get(IntPtr cursor, ref ValueStructure key, r
515
515
return Native64BitLibraryFacade . mdb_cursor_get ( cursor , ref key , ref data , op ) ;
516
516
}
517
517
518
- int INativeLibraryFacade . mdb_cursor_put ( IntPtr cursor , ValueStructure key , ValueStructure data , PutOptions flags )
518
+ int INativeLibraryFacade . mdb_cursor_put ( IntPtr cursor , ref ValueStructure key , ref ValueStructure data , PutOptions flags )
519
519
{
520
- return Native64BitLibraryFacade . mdb_cursor_put ( cursor , key , data , flags ) ;
520
+ return Native64BitLibraryFacade . mdb_cursor_put ( cursor , ref key , ref data , flags ) ;
521
521
}
522
522
523
523
int INativeLibraryFacade . mdb_cursor_del ( IntPtr cursor , CursorDeleteOption flags )
@@ -618,7 +618,7 @@ class FallbackLibraryFacade : INativeLibraryFacade
618
618
private static extern int mdb_cursor_get ( IntPtr cursor , ref ValueStructure key , ref ValueStructure data , CursorOperation op ) ;
619
619
620
620
[ DllImport ( LibraryName , CallingConvention = CallingConvention . Cdecl ) ]
621
- private static extern int mdb_cursor_put ( IntPtr cursor , ValueStructure key , ValueStructure data , PutOptions flags ) ;
621
+ private static extern int mdb_cursor_put ( IntPtr cursor , ref ValueStructure key , ref ValueStructure data , PutOptions flags ) ;
622
622
623
623
[ DllImport ( LibraryName , CallingConvention = CallingConvention . Cdecl ) ]
624
624
private static extern int mdb_cursor_del ( IntPtr cursor , CursorDeleteOption flags ) ;
@@ -778,9 +778,9 @@ int INativeLibraryFacade.mdb_cursor_get(IntPtr cursor, ref ValueStructure key, r
778
778
return FallbackLibraryFacade . mdb_cursor_get ( cursor , ref key , ref data , op ) ;
779
779
}
780
780
781
- int INativeLibraryFacade . mdb_cursor_put ( IntPtr cursor , ValueStructure key , ValueStructure data , PutOptions flags )
781
+ int INativeLibraryFacade . mdb_cursor_put ( IntPtr cursor , ref ValueStructure key , ref ValueStructure data , PutOptions flags )
782
782
{
783
- return FallbackLibraryFacade . mdb_cursor_put ( cursor , key , data , flags ) ;
783
+ return FallbackLibraryFacade . mdb_cursor_put ( cursor , ref key , ref data , flags ) ;
784
784
}
785
785
786
786
int INativeLibraryFacade . mdb_cursor_del ( IntPtr cursor , CursorDeleteOption flags )
0 commit comments