private void AllocateQualifierDecl(MI_Flags flags, UInt32 code, string name, IntPtr qualifiers, UInt32 numQualifiers, MI_Type type, string className, UInt32 subscript, UInt32 offset, string origin, string propagator, IntPtr value) { var dest = new MI_PropertyDeclMembers(); dest.flags = flags; dest.code = code; dest.name = MI_PlatformSpecific.StringToPtr(name); dest.qualifiers = qualifiers; dest.numQualifiers = numQualifiers; dest.type = type; dest.className = MI_PlatformSpecific.StringToPtr(className); dest.subscript = subscript; dest.offset = offset; dest.origin = MI_PlatformSpecific.StringToPtr(origin); dest.propagator = MI_PlatformSpecific.StringToPtr(propagator); dest.value = value; this.ptr = Marshal.AllocHGlobal(MI_PropertyDeclMembersSize); Marshal.StructureToPtr(dest, this.ptr, false); }
private void AllocateQualifierDecl(string name, MI_Type type, MI_Flags scope, MI_Flags flavor, UInt32 subscript, IntPtr value) { var dest = new MI_QualifierDeclMembers(); dest.name = MI_PlatformSpecific.StringToPtr(name); dest.type = type; dest.scope = (UInt32)scope; dest.flavor = (UInt32)flavor; dest.subscript = subscript; dest.value = value; this.ptr = Marshal.AllocHGlobal(MI_QualifierDeclMembersSize); Marshal.StructureToPtr(dest, this.ptr, false); }