File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
using System ;
2
- using System . Runtime . InteropServices ;
3
2
4
3
namespace LibGit2Sharp . Core . Handles
5
4
{
6
- [ StructLayout ( LayoutKind . Sequential ) ]
7
- internal class GitBuf : IDisposable
5
+ internal struct GitBuf : IDisposable
8
6
{
9
7
public IntPtr ptr ;
10
8
public UIntPtr asize ;
Original file line number Diff line number Diff line change 10
10
11
11
// Restrict the set of directories where the native library is loaded from to safe directories.
12
12
[ assembly: DefaultDllImportSearchPaths ( DllImportSearchPath . AssemblyDirectory | DllImportSearchPath . ApplicationDirectory | DllImportSearchPath . SafeDirectories ) ]
13
+ [ assembly: DisableRuntimeMarshalling ]
13
14
14
15
namespace LibGit2Sharp . Core
15
16
{
@@ -1095,14 +1096,17 @@ internal delegate int git_remote_rename_problem_cb(
1095
1096
1096
1097
[ LibraryImport ( libgit2 ) ]
1097
1098
[ UnmanagedCallConv ( CallConvs = [ typeof ( CallConvCdecl ) ] ) ]
1099
+ [ return : MarshalAs ( UnmanagedType . Bool ) ]
1098
1100
internal static partial bool git_refspec_force ( IntPtr refSpec ) ;
1099
1101
1100
1102
[ LibraryImport ( libgit2 , StringMarshalling = StringMarshalling . Utf8 ) ]
1101
1103
[ UnmanagedCallConv ( CallConvs = [ typeof ( CallConvCdecl ) ] ) ]
1104
+ [ return : MarshalAs ( UnmanagedType . Bool ) ]
1102
1105
internal static partial bool git_refspec_src_matches ( IntPtr refspec , string reference ) ;
1103
1106
1104
1107
[ LibraryImport ( libgit2 , StringMarshalling = StringMarshalling . Utf8 ) ]
1105
1108
[ UnmanagedCallConv ( CallConvs = [ typeof ( CallConvCdecl ) ] ) ]
1109
+ [ return : MarshalAs ( UnmanagedType . Bool ) ]
1106
1110
internal static partial bool git_refspec_dst_matches ( IntPtr refspec , string reference ) ;
1107
1111
1108
1112
[ LibraryImport ( libgit2 ) ]
You can’t perform that action at this time.
0 commit comments