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 \r
6     /// <summary>\r
7     /// Represents a HandBrake style native list.\r
8     /// </summary>\r
9     public class NativeList\r
10     {\r
11         /// <summary>\r
12         /// The list of native memory locations allocated for this list.\r
13         /// </summary>\r
14         private List<IntPtr> allocatedMemory = new List<IntPtr>();\r
15 \r
16         /// <summary>\r
17         /// Gets or sets the pointer to the native list.\r
18         /// </summary>\r
19         public IntPtr ListPtr { get; set; }\r
20 \r
21         /// <summary>\r
22         /// Gets the list of native memory locations allocated for this list.\r
23         /// </summary>\r
24         public List<IntPtr> AllocatedMemory\r
25         {\r
26             get\r
27             {\r
28                 return allocatedMemory;\r
29             }\r
30         }\r
31     }\r
32 }\r