コード例 #1
0
ファイル: Runtime.cs プロジェクト: sharpos/SharpOS
		public unsafe static void DumpTypeDef (AssemblyMetadata assembly, TypeDefRow row, int index)
		{
			Debug.COM1.Write (" ");
			Debug.COM1.Write ("TypeDefRow#");
			Debug.COM1.Write (index);
			Debug.COM1.Write (" ");
			Debug.COM1.Write ((int)row.Flags, true);
			Debug.COM1.Write (" ");
			Debug.COM1.Write ((int)row.Name, true);
			Debug.COM1.Write (" ");
			Debug.COM1.Write ((int)row.Namespace, true);
			Debug.COM1.Write (" ");
			Debug.COM1.Write ((int)row.Extends, true);
			Debug.COM1.Write (" ");
			Debug.COM1.Write ((int)row.FieldList, true);
			Debug.COM1.Write (" ");
			Debug.COM1.Write ((int)row.MethodList, true);
			Debug.COM1.Write (" ");
			PrintTypeName (assembly, row);
			Debug.COM1.WriteLine ();
		}
コード例 #2
0
ファイル: Runtime.cs プロジェクト: sharpos/SharpOS
		public unsafe static void PrintTypeName (AssemblyMetadata assembly, TypeDefRow type)
		{
			CString8 *name, ns;

			name = GetString (assembly, type.Name);
			ns = GetString (assembly, type.Namespace);

			Debug.COM1.Write (ns);
			Debug.COM1.Write (".");
			Debug.COM1.Write (name);

			MemoryManager.Free (name);
			MemoryManager.Free (ns);
		}