OSDN Git Service

WinGui:
[handbrake-jp/handbrake-jp-git.git] / win / C# / interop / NativeList.cs
1 // --------------------------------------------------------------------------------------------------------------------\r
2 // <copyright file="NativeList.cs" company="HandBrake Project (http://handbrake.fr)">\r
3 //   This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.\r
4 // </copyright>\r
5 // <summary>\r
6 //   Represents a HandBrake style native list.\r
7 // </summary>\r
8 // --------------------------------------------------------------------------------------------------------------------\r
9 \r
10 namespace HandBrake.Interop\r
11 {\r
12     using System;\r
13     using System.Collections.Generic;\r
14 \r
15     /// <summary>\r
16     /// Represents a HandBrake style native list.\r
17     /// </summary>\r
18     public class NativeList\r
19     {\r
20         /// <summary>\r
21         /// The list of native memory locations allocated for this list.\r
22         /// </summary>\r
23         private List<IntPtr> allocatedMemory = new List<IntPtr>();\r
24 \r
25         /// <summary>\r
26         /// Gets or sets the pointer to the native list.\r
27         /// </summary>\r
28         public IntPtr ListPtr { get; set; }\r
29 \r
30         /// <summary>\r
31         /// Gets the list of native memory locations allocated for this list.\r
32         /// </summary>\r
33         public List<IntPtr> AllocatedMemory\r
34         {\r
35             get\r
36             {\r
37                 return allocatedMemory;\r
38             }\r
39         }\r
40     }\r
41 }\r