summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.Interop/HandBrakeInterop/NativeList.cs
blob: 6d39bb8f4c08e97eef8e2c86a2b7524b82119220 (plain)
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
31
32
33
34
namespace HandBrake.Interop
{
	using System;
	using System.Collections.Generic;
	using System.Linq;
	using System.Text;

	/// <summary>
	/// Represents a HandBrake style native list.
	/// </summary>
	public class NativeList
	{
		/// <summary>
		/// The list of native memory locations allocated for this list.
		/// </summary>
		private List<IntPtr> allocatedMemory = new List<IntPtr>();

		/// <summary>
		/// Gets or sets the pointer to the native list.
		/// </summary>
		public IntPtr ListPtr { get; set; }

		/// <summary>
		/// Gets the list of native memory locations allocated for this list.
		/// </summary>
		public List<IntPtr> AllocatedMemory
		{
			get
			{
				return allocatedMemory;
			}
		}
	}
}