INNER CODE UNIT · C#

count

GloriousPtr/ArcGameEngine · Arc-ScriptCore/src/Core/AssemblyHelper.cs:705

			int count = value.Length + 1;
			IntPtr[] strings = new IntPtr[count];
			for (int i = 0; i < value.Length; ++i)
				strings[i] = Marshal.StringToHGlobalAnsi(value[i]);
			strings[value.Length] = IntPtr.Zero;

			IntPtr result = Marshal.AllocHGlobal(IntPtr.Size * count);
			Marshal.Copy(strings, 0, result, count);

			if (!m_ArrayAllocations.ContainsKey(result))
				m_ArrayAllocations.Add(result, strings);

			return result;
		}

	}
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…