OSDN Git Service

WinGui;
[handbrake-jp/handbrake-jp-git.git] / win / C# / interop / NativeList.cs
1 namespace HandBrake.Interop\r
2 {\r
3     using System;\r
4     using System.Collections.Generic;\r
5     using System.Linq;\r
6     using System.Text;\r
7 \r
8     /// <summary>\r
9     /// Represents a HandBrake style native list.\r
10     /// </summary>\r
11     public class NativeList\r
12     {\r
13         /// <summary>\r
14         /// The list of native memory locations allocated for this list.\r
15         /// </summary>\r
16         private List<IntPtr> allocatedMemory = new List<IntPtr>();\r
17 \r
18         /// <summary>\r
19         /// Gets or sets the pointer to the native list.\r
20         /// </summary>\r
21         public IntPtr ListPtr { get; set; }\r
22 \r
23         /// <summary>\r
24         /// Gets the list of native memory locations allocated for this list.\r
25         /// </summary>\r
26         public List<IntPtr> AllocatedMemory\r
27         {\r
28             get\r
29             {\r
30                 return allocatedMemory;\r
31             }\r
32         }\r
33     }\r
34 }\r