// Method to marshal from native to managed struct internal unsafe void __MarshalFrom(ref __Native @ref) { this.Name = ( @ref.Name == IntPtr.Zero )?null:Marshal.PtrToStringAnsi(@ref.Name); this.Semantic = ( @ref.Semantic == IntPtr.Zero )?null:Marshal.PtrToStringAnsi(@ref.Semantic); this.Class = @ref.Class; this.Type = @ref.Type; this.Rows = @ref.Rows; this.Columns = @ref.Columns; this.Elements = @ref.Elements; this.Annotations = @ref.Annotations; this.StructMembers = @ref.StructMembers; this.Flags = @ref.Flags; this.Bytes = @ref.Bytes; }
// Method to marshal from native to managed struct internal unsafe void __MarshalFrom(ref __Native @ref) { this.Name = ( @ref.Name == IntPtr.Zero )?null:Marshal.PtrToStringAnsi(@ref.Name); this.RegisterSet = @ref.RegisterSet; this.RegisterIndex = @ref.RegisterIndex; this.RegisterCount = @ref.RegisterCount; this.Class = @ref.Class; this.Type = @ref.Type; this.Rows = @ref.Rows; this.Columns = @ref.Columns; this.Elements = @ref.Elements; this.StructMembers = @ref.StructMembers; this.Bytes = @ref.Bytes; this.DefaultValue = @ref.DefaultValue; }