forked from libgit2/libgit2sharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGitStrArray.cs
More file actions
30 lines (27 loc) · 706 Bytes
/
Copy pathGitStrArray.cs
File metadata and controls
30 lines (27 loc) · 706 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;
namespace LibGit2Sharp.Core
{
[StructLayout(LayoutKind.Sequential)]
internal struct GitStrArray
{
/// <summary>
/// A pointer to an array of null-terminated strings.
/// </summary>
public IntPtr Strings;
/// <summary>
/// The number of strings in the array.
/// </summary>
public UIntPtr Count;
/// <summary>
/// Resets the GitStrArray to default values.
/// </summary>
public void Reset()
{
Strings = IntPtr.Zero;
Count = UIntPtr.Zero;
}
}
}