2004-05-28 16:59:21 +00:00
<Type Name= "Marshaller" FullName= "GLib.Marshaller" >
2003-08-30 02:35:39 +00:00
<TypeSignature Language= "C#" Value= "public class Marshaller" Maintainer= "auto" />
<AssemblyInfo >
<AssemblyName > glib-sharp</AssemblyName>
2003-12-04 21:09:30 +00:00
<AssemblyPublicKey >
</AssemblyPublicKey>
2003-08-30 02:35:39 +00:00
</AssemblyInfo>
<ThreadSafetyStatement > Gtk# is thread aware, but not thread safe; See the <link location= "node:gtk-sharp/programming/threads" > Gtk# Thread Programming</link> for details.</ThreadSafetyStatement>
<Base >
<BaseTypeName > System.Object</BaseTypeName>
</Base>
<Interfaces />
2009-01-06 16:29:49 +00:00
<Docs >
<summary > Marshalling utilities</summary>
<remarks > Utility class for internal wrapper use</remarks>
</Docs>
2003-08-30 02:35:39 +00:00
<Members >
2009-01-06 16:29:49 +00:00
<Member MemberName= "ArgvToArrayPtr" >
<MemberSignature Language= "C#" Value= "public static IntPtr ArgvToArrayPtr (string[] args);" />
2003-08-30 02:35:39 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
2009-01-06 16:29:49 +00:00
<ReturnType > System.IntPtr</ReturnType>
2003-08-30 02:35:39 +00:00
</ReturnValue>
<Parameters >
2009-01-06 16:29:49 +00:00
<Parameter Name= "args" Type= "System.String[]" />
2003-08-30 02:35:39 +00:00
</Parameters>
<Docs >
2009-01-06 16:29:49 +00:00
<param name= "args" > a <see cref= "T:System.String" /> </param>
<summary > Obsolete.</summary>
<returns > a <see cref= "T:System.IntPtr" /> </returns>
<remarks > Replaced by <see cref= "T:GLib.Argv" /> </remarks>
2003-08-30 02:35:39 +00:00
</Docs>
2009-01-06 16:29:49 +00:00
<Attributes >
<Attribute >
<AttributeName > System.Obsolete("Use GLib.Argv instead to avoid leaks.")</AttributeName>
</Attribute>
</Attributes>
2003-08-30 02:35:39 +00:00
</Member>
2009-01-06 16:29:49 +00:00
<Member MemberName= "ArrayPtrToArgv" >
<MemberSignature Language= "C#" Value= "public static string[] ArrayPtrToArgv (IntPtr array, int argc);" />
2003-08-30 02:35:39 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.String[]</ReturnType>
</ReturnValue>
<Parameters >
2009-01-06 16:29:49 +00:00
<Parameter Name= "array" Type= "System.IntPtr" />
<Parameter Name= "argc" Type= "System.Int32" />
2003-08-30 02:35:39 +00:00
</Parameters>
<Docs >
2009-01-06 16:29:49 +00:00
<param name= "array" > a <see cref= "T:System.IntPtr" /> </param>
<param name= "argc" > a <see cref= "T:System.Int32" /> </param>
<summary > Obsolete.</summary>
2003-08-30 02:35:39 +00:00
<returns > a <see cref= "T:System.String[]" /> </returns>
2009-01-06 16:29:49 +00:00
<remarks > Replaced by <see cref= "T:GLib.Argv" /> </remarks>
2003-08-30 02:35:39 +00:00
</Docs>
2009-01-06 16:29:49 +00:00
<Attributes >
<Attribute >
<AttributeName > System.Obsolete("Use GLib.Argv instead to avoid leaks.")</AttributeName>
</Attribute>
</Attributes>
2003-08-30 02:35:39 +00:00
</Member>
2009-01-06 16:29:49 +00:00
<Member MemberName= "CharToGUnichar" >
<MemberSignature Language= "C#" Value= "public static uint CharToGUnichar (char c);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.UInt32</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "c" Type= "System.Char" />
</Parameters>
<Docs >
<param name= "c" > a <see cref= "T:System.Char" /> </param>
<summary > Marshals a UTF16 char to a UCS4 character represented as an uint.</summary>
<returns > a <see cref= "T:System.UInt32" /> </returns>
<remarks >
</remarks>
</Docs>
</Member>
<Member MemberName= "DateTimeTotime_t" >
<MemberSignature Language= "C#" Value= "public static IntPtr DateTimeTotime_t (DateTime time);" />
2003-08-30 02:35:39 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.IntPtr</ReturnType>
</ReturnValue>
<Parameters >
2009-01-06 16:29:49 +00:00
<Parameter Name= "time" Type= "System.DateTime" />
2003-08-30 02:35:39 +00:00
</Parameters>
<Docs >
2009-01-06 16:29:49 +00:00
<param name= "time" > a <see cref= "T:System.DateTime" /> </param>
<summary > Marshals DateTime structures to native time_t values.</summary>
2003-08-30 02:35:39 +00:00
<returns > a <see cref= "T:System.IntPtr" /> </returns>
2005-03-04 19:04:57 +00:00
<remarks />
2003-08-30 02:35:39 +00:00
</Docs>
</Member>
2009-01-06 16:29:49 +00:00
<Member MemberName= "FilenamePtrToString" >
<MemberSignature Language= "C#" Value= "public static string FilenamePtrToString (IntPtr ptr);" />
2004-03-09 06:02:51 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
2009-01-06 16:29:49 +00:00
<ReturnType > System.String</ReturnType>
2004-03-09 06:02:51 +00:00
</ReturnValue>
<Parameters >
2009-01-06 16:29:49 +00:00
<Parameter Name= "ptr" Type= "System.IntPtr" />
2004-03-09 06:02:51 +00:00
</Parameters>
<Docs >
2009-01-06 16:29:49 +00:00
<param name= "ptr" > A native filename-encoded string pointer.</param>
<summary > Marshals a native filename-encoded string to a managed string.</summary>
<returns > A managed string.</returns>
<remarks > The native pointer is not freed after marshaling. Use with const strings.</remarks>
<since version= "Gtk# 2.4" />
2004-03-09 06:02:51 +00:00
</Docs>
</Member>
2009-01-06 16:29:49 +00:00
<Member MemberName= "FilenamePtrToStringGFree" >
<MemberSignature Language= "C#" Value= "public static string FilenamePtrToStringGFree (IntPtr ptr);" />
2004-03-09 06:02:51 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
2009-01-06 16:29:49 +00:00
<ReturnType > System.String</ReturnType>
2004-03-09 06:02:51 +00:00
</ReturnValue>
<Parameters >
2009-01-06 16:29:49 +00:00
<Parameter Name= "ptr" Type= "System.IntPtr" />
2004-03-09 06:02:51 +00:00
</Parameters>
<Docs >
2009-01-06 16:29:49 +00:00
<param name= "ptr" > A native filename-encoded string pointer.</param>
<summary > Marshals a native filename-encoded string to a managed string.</summary>
<returns > A managed string.</returns>
<remarks > The native pointer is freed after marshaling.</remarks>
<since version= "Gtk# 2.4" />
2004-03-09 06:02:51 +00:00
</Docs>
</Member>
2009-01-06 16:29:49 +00:00
<Member MemberName= "Free" >
<MemberSignature Language= "C#" Value= "public static void Free (IntPtr ptr);" />
2004-05-27 19:02:19 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
2009-01-06 16:29:49 +00:00
<ReturnType > System.Void</ReturnType>
2004-05-27 19:02:19 +00:00
</ReturnValue>
<Parameters >
2009-01-06 16:29:49 +00:00
<Parameter Name= "ptr" Type= "System.IntPtr" />
2004-05-27 19:02:19 +00:00
</Parameters>
<Docs >
2009-01-06 16:29:49 +00:00
<param name= "ptr" > a <see cref= "T:System.IntPtr" /> </param>
<summary > Free a native pointer allocated by GLib.</summary>
2005-06-02 14:33:00 +00:00
<remarks />
2009-01-06 16:29:49 +00:00
<since version= "Gtk# 2.4" />
2004-05-27 19:02:19 +00:00
</Docs>
</Member>
2009-01-06 16:29:49 +00:00
<Member MemberName= "Free" >
<MemberSignature Language= "C#" Value= "public static void Free (IntPtr[] ptrs);" />
2004-05-27 19:02:19 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
2009-01-06 16:29:49 +00:00
<ReturnType > System.Void</ReturnType>
2004-05-27 19:02:19 +00:00
</ReturnValue>
<Parameters >
2009-01-06 16:29:49 +00:00
<Parameter Name= "ptrs" Type= "System.IntPtr[]" />
2004-05-27 19:02:19 +00:00
</Parameters>
<Docs >
2009-01-06 16:29:49 +00:00
<param name= "ptrs" > An array of native memory addresses.</param>
<summary > Frees an array of native memory locations.</summary>
2005-06-02 14:33:00 +00:00
<remarks />
2004-05-27 19:02:19 +00:00
</Docs>
</Member>
2004-08-17 20:43:49 +00:00
<Member MemberName= "GUnicharToChar" >
<MemberSignature Language= "C#" Value= "public static char GUnicharToChar (uint ucs4_char);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Char</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "ucs4_char" Type= "System.UInt32" />
</Parameters>
<Docs >
<param name= "ucs4_char" > a <see cref= "T:System.UInt32" /> </param>
2009-01-06 16:29:49 +00:00
<summary > Marshals a UCS4 character represented as an uint to a UTF16 char.</summary>
2004-08-17 20:43:49 +00:00
<returns > a <see cref= "T:System.Char" /> </returns>
2004-08-18 16:08:02 +00:00
<remarks >
</remarks>
2004-08-17 20:43:49 +00:00
</Docs>
</Member>
2009-01-06 16:29:49 +00:00
<Member MemberName= "GUnicharToString" >
<MemberSignature Language= "C#" Value= "public static string GUnicharToString (uint ucs4_char);" />
2004-08-17 20:43:49 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
2009-01-06 16:29:49 +00:00
<ReturnType > System.String</ReturnType>
2004-08-17 20:43:49 +00:00
</ReturnValue>
<Parameters >
2009-01-06 16:29:49 +00:00
<Parameter Name= "ucs4_char" Type= "System.UInt32" />
2004-08-17 20:43:49 +00:00
</Parameters>
<Docs >
2009-01-06 16:29:49 +00:00
<param name= "ucs4_char" > a <see cref= "T:System.UInt32" /> </param>
<summary > Marshals a UCS4 character represented as an uint to a string.</summary>
<returns > a <see cref= "T:System.String" /> </returns>
<remarks />
<since version= "Gtk# 2.14" />
2004-08-17 20:43:49 +00:00
</Docs>
</Member>
2009-01-06 16:29:49 +00:00
<Member MemberName= "ListPtrToArray" >
<MemberSignature Language= "C#" Value= "public static Array ListPtrToArray (IntPtr list_ptr, Type list_type, bool owned, bool elements_owned, Type elem_type);" />
2005-01-20 15:45:13 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
2009-01-06 16:29:49 +00:00
<ReturnType > System.Array</ReturnType>
2005-01-20 15:45:13 +00:00
</ReturnValue>
<Parameters >
2009-01-06 16:29:49 +00:00
<Parameter Name= "list_ptr" Type= "System.IntPtr" />
<Parameter Name= "list_type" Type= "System.Type" />
<Parameter Name= "owned" Type= "System.Boolean" />
<Parameter Name= "elements_owned" Type= "System.Boolean" />
<Parameter Name= "elem_type" Type= "System.Type" />
2005-01-20 15:45:13 +00:00
</Parameters>
<Docs >
2009-01-06 16:29:49 +00:00
<param name= "list_ptr" > the native list pointer.</param>
<param name= "list_type" > the managed type of the list, eg <see cref= "T:GLib.List" /> or <see cref= "T:GLib.SList" /> .</param>
<param name= "owned" > indicates if the native list being marshaled should be released.</param>
<param name= "elements_owned" > indicates if the list members should be released.</param>
<param name= "elem_type" > the managed type of the list members.</param>
<summary > Marshals a list pointer to a managed array.</summary>
<returns > a managed array.</returns>
<remarks />
<since version= "Gtk# 2.10" />
2005-01-20 15:45:13 +00:00
</Docs>
</Member>
2009-01-06 16:29:49 +00:00
<Member MemberName= "ListToArray" >
<MemberSignature Language= "C#" Value= "public static Array ListToArray (GLib.ListBase list, Type type);" />
2005-03-04 19:04:57 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
2009-01-06 16:29:49 +00:00
<ReturnType > System.Array</ReturnType>
2005-03-04 19:04:57 +00:00
</ReturnValue>
<Parameters >
2009-01-06 16:29:49 +00:00
<Parameter Name= "list" Type= "GLib.ListBase" />
<Parameter Name= "type" Type= "System.Type" />
2005-03-04 19:04:57 +00:00
</Parameters>
<Docs >
2009-01-06 16:29:49 +00:00
<param name= "list" > The list to be marshaled.</param>
<param name= "type" > The type of the list elements.</param>
<summary > Marshals a native list to a typed array.</summary>
<returns > An array of <paramref name= "type" /> .</returns>
2005-03-04 19:04:57 +00:00
<remarks />
2005-06-16 18:56:42 +00:00
<since version= "Gtk# 2.4" />
2005-03-04 19:04:57 +00:00
</Docs>
</Member>
2009-01-06 16:29:49 +00:00
<Member MemberName= "Malloc" >
<MemberSignature Language= "C#" Value= "public static IntPtr Malloc (ulong size);" />
2005-04-22 19:43:46 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
2009-01-06 16:29:49 +00:00
<ReturnType > System.IntPtr</ReturnType>
2005-04-22 19:43:46 +00:00
</ReturnValue>
<Parameters >
2009-01-06 16:29:49 +00:00
<Parameter Name= "size" Type= "System.UInt64" />
2005-04-22 19:43:46 +00:00
</Parameters>
<Docs >
2009-01-06 16:29:49 +00:00
<param name= "size" > Size in bytes to be allocated.</param>
<summary > Allocates a block of heap memory using the glib allocator.</summary>
<returns > A pointer to the block.</returns>
2005-04-22 19:43:46 +00:00
<remarks />
</Docs>
</Member>
2009-01-06 16:29:49 +00:00
<Member MemberName= "NullTermPtrToStringArray" >
<MemberSignature Language= "C#" Value= "public static string[] NullTermPtrToStringArray (IntPtr null_term_array, bool owned);" />
2005-03-04 19:04:57 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
2009-01-06 16:29:49 +00:00
<ReturnType > System.String[]</ReturnType>
2005-03-04 19:04:57 +00:00
</ReturnValue>
<Parameters >
2009-01-06 16:29:49 +00:00
<Parameter Name= "null_term_array" Type= "System.IntPtr" />
<Parameter Name= "owned" Type= "System.Boolean" />
2005-03-04 19:04:57 +00:00
</Parameters>
<Docs >
2009-01-06 16:29:49 +00:00
<param name= "null_term_array" > Pointer to a null-terminated string array.</param>
<param name= "owned" > Indicates if the memory is owned and should be released.</param>
<summary > Marshals a native null-terminated string array to a managed string array.</summary>
<returns > an array of managed strings.</returns>
<remarks />
2005-03-04 19:04:57 +00:00
</Docs>
</Member>
2009-01-06 16:29:49 +00:00
<Member MemberName= "PtrArrayToArray" >
<MemberSignature Language= "C#" Value= "public static Array PtrArrayToArray (IntPtr list_ptr, bool owned, bool elements_owned, Type elem_type);" />
2005-03-08 21:28:08 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
2009-01-06 16:29:49 +00:00
<ReturnType > System.Array</ReturnType>
2005-03-08 21:28:08 +00:00
</ReturnValue>
<Parameters >
2009-01-06 16:29:49 +00:00
<Parameter Name= "list_ptr" Type= "System.IntPtr" />
<Parameter Name= "owned" Type= "System.Boolean" />
<Parameter Name= "elements_owned" Type= "System.Boolean" />
<Parameter Name= "elem_type" Type= "System.Type" />
2005-03-08 21:28:08 +00:00
</Parameters>
<Docs >
2009-01-06 16:29:49 +00:00
<param name= "list_ptr" > a pointer to a native GPtrArray.</param>
<param name= "owned" > indicates if the native array should be released.</param>
<param name= "elements_owned" > indicates if the native members should be released.</param>
<param name= "elem_type" > the managed type of the array elements.</param>
<summary > Marshals a native GPtrArray to a managed array.</summary>
<returns > a managed array.</returns>
2005-06-02 14:33:00 +00:00
<remarks />
2009-01-06 16:29:49 +00:00
<since version= "Gtk# 2.12" />
2005-06-02 14:33:00 +00:00
</Docs>
</Member>
2009-01-06 16:29:49 +00:00
<Member MemberName= "PtrToStringArrayGFree" >
<MemberSignature Language= "C#" Value= "public static string[] PtrToStringArrayGFree (IntPtr string_array);" />
2005-06-02 14:33:00 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
2009-01-06 16:29:49 +00:00
<ReturnType > System.String[]</ReturnType>
2005-06-02 14:33:00 +00:00
</ReturnValue>
<Parameters >
2009-01-06 16:29:49 +00:00
<Parameter Name= "string_array" Type= "System.IntPtr" />
2005-06-02 14:33:00 +00:00
</Parameters>
<Docs >
2009-01-06 16:29:49 +00:00
<param name= "string_array" > Pointer to a null-terminated string array.</param>
<summary > Marshal a null-terminated string array to a managed array.</summary>
<returns > A string array.</returns>
<remarks />
2005-06-02 14:33:00 +00:00
</Docs>
</Member>
2009-01-06 16:29:49 +00:00
<Member MemberName= "PtrToStringGFree" >
<MemberSignature Language= "C#" Value= "public static string PtrToStringGFree (IntPtr ptr);" />
2005-06-02 14:33:00 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.String</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "ptr" Type= "System.IntPtr" />
</Parameters>
<Docs >
2009-01-06 16:29:49 +00:00
<param name= "ptr" > a <see cref= "T:System.IntPtr" /> </param>
<summary > Marshals a utf8 string from native memory and frees the native string.</summary>
<returns > a <see cref= "T:System.String" /> </returns>
<remarks />
2005-06-02 14:33:00 +00:00
</Docs>
</Member>
2009-01-06 16:29:49 +00:00
<Member MemberName= "PtrToStringGFree" >
<MemberSignature Language= "C#" Value= "public static string[] PtrToStringGFree (IntPtr[] ptrs);" />
2005-06-02 14:33:00 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
2009-01-06 16:29:49 +00:00
<ReturnType > System.String[]</ReturnType>
2005-06-02 14:33:00 +00:00
</ReturnValue>
<Parameters >
2009-01-06 16:29:49 +00:00
<Parameter Name= "ptrs" Type= "System.IntPtr[]" />
2005-06-02 14:33:00 +00:00
</Parameters>
<Docs >
2009-01-06 16:29:49 +00:00
<param name= "ptrs" > a <see cref= "T:System.IntPtr[]" /> </param>
<summary > Marshals an array of utf8 string from native memory and frees the native strings.</summary>
<returns > a <see cref= "T:System.String[]" /> </returns>
2005-06-02 14:33:00 +00:00
<remarks />
2005-03-08 21:28:08 +00:00
</Docs>
</Member>
2009-01-06 16:29:49 +00:00
<Member MemberName= "StrFreeV" >
<MemberSignature Language= "C#" Value= "public static void StrFreeV (IntPtr null_term_array);" />
2005-06-08 16:53:12 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
2009-01-06 16:29:49 +00:00
<ReturnType > System.Void</ReturnType>
2005-06-08 16:53:12 +00:00
</ReturnValue>
<Parameters >
2009-01-06 16:29:49 +00:00
<Parameter Name= "null_term_array" Type= "System.IntPtr" />
2005-06-08 16:53:12 +00:00
</Parameters>
<Docs >
2009-01-06 16:29:49 +00:00
<param name= "null_term_array" > Pointer to a native null-terminated string array.</param>
<summary > Frees a string array, including its member strings.</summary>
2005-06-08 16:53:12 +00:00
<remarks />
</Docs>
</Member>
2009-01-06 16:29:49 +00:00
<Member MemberName= "StringArrayToNullTermPointer" >
<MemberSignature Language= "C#" Value= "public static IntPtr[] StringArrayToNullTermPointer (string[] strs);" />
2007-11-11 03:17:29 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
2009-01-06 16:29:49 +00:00
<ReturnType > System.IntPtr[]</ReturnType>
2007-11-11 03:17:29 +00:00
</ReturnValue>
<Parameters >
2009-01-06 16:29:49 +00:00
<Parameter Name= "strs" Type= "System.String[]" />
2007-11-11 03:17:29 +00:00
</Parameters>
<Docs >
2009-01-06 16:29:49 +00:00
<param name= "strs" > an array of strings.</param>
<summary > Marshals a managed string array to a native null-terminated array.</summary>
<returns > An array of native string pointers.</returns>
2007-11-11 03:17:29 +00:00
<remarks />
</Docs>
</Member>
2009-01-06 16:29:49 +00:00
<Member MemberName= "StringFormat" >
<MemberSignature Language= "C#" Value= "public static string StringFormat (string format, object[] args);" />
2007-11-11 03:17:29 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
2009-01-06 16:29:49 +00:00
<ReturnType > System.String</ReturnType>
2007-11-11 03:17:29 +00:00
</ReturnValue>
<Parameters >
2009-01-06 16:29:49 +00:00
<Parameter Name= "format" Type= "System.String" />
<Parameter Name= "args" Type= "System.Object[]" >
<Attributes >
<Attribute >
<AttributeName > System.ParamArray</AttributeName>
</Attribute>
</Attributes>
</Parameter>
2007-11-11 03:17:29 +00:00
</Parameters>
<Docs >
2009-01-06 16:29:49 +00:00
<param name= "format" > a <see cref= "M:System.Format" /> -style format string</param>
<param name= "args" > arguments for <paramref name= "format" /> </param>
<summary > Wrapper for marshalling between String.Format-style methods and printf-style ones</summary>
<returns > a <see cref= "T:System.String" /> </returns>
<remarks > This is a wrapper for marshalling between managed String.Format-style methods and unmanaged printf-style ones. The managed function should take a <see cref= "T:System.String" /> format, and a <see langword= "params" /> array of <see cref= "T:System.Object" /> , and pass that to <see cref= "M:GLib.Marshaller.StringFormat" /> . <see cref= "M:GLib.Marshaller.StringFormat" /> will format the data, and then make sure that any percent signs in the result are doubled so that they can safely be passed to an unmanaged method that expects a printf-style string (and following arguments).</remarks>
<since version= "Gtk# 2.4" />
</Docs>
</Member>
<Member MemberName= "StringToFilenamePtr" >
<MemberSignature Language= "C#" Value= "public static IntPtr StringToFilenamePtr (string str);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.IntPtr</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "str" Type= "System.String" />
</Parameters>
<Docs >
<param name= "str" > A managed string to be marshaled.</param>
<summary > Marshals a string to a filename encoded native pointer.</summary>
<returns > A pointer to a newly allocated native string.</returns>
2007-11-11 03:17:29 +00:00
<remarks />
2009-01-06 16:29:49 +00:00
<since version= "Gtk# 2.4" />
2007-11-11 03:17:29 +00:00
</Docs>
</Member>
2009-01-06 16:29:49 +00:00
<Member MemberName= "StringToPtrGStrdup" >
<MemberSignature Language= "C#" Value= "public static IntPtr StringToPtrGStrdup (string str);" />
2007-11-11 03:17:29 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
2009-01-06 16:29:49 +00:00
<ReturnType > System.IntPtr</ReturnType>
2007-11-11 03:17:29 +00:00
</ReturnValue>
<Parameters >
2009-01-06 16:29:49 +00:00
<Parameter Name= "str" Type= "System.String" />
2007-11-11 03:17:29 +00:00
</Parameters>
<Docs >
2009-01-06 16:29:49 +00:00
<param name= "str" > a <see cref= "T:System.String" /> </param>
<summary > Marshal a string to a native Utf8 string using GLib memory allocation.</summary>
<returns > a <see cref= "T:System.IntPtr" /> </returns>
2007-11-11 03:17:29 +00:00
<remarks />
</Docs>
</Member>
2009-01-06 16:29:49 +00:00
<Member MemberName= "StructureToPtrAlloc" >
<MemberSignature Language= "C#" Value= "public static IntPtr StructureToPtrAlloc (object o);" />
2008-02-29 23:42:27 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.IntPtr</ReturnType>
</ReturnValue>
<Parameters >
2009-01-06 16:29:49 +00:00
<Parameter Name= "o" Type= "System.Object" />
2008-02-29 23:42:27 +00:00
</Parameters>
<Docs >
2009-01-06 16:29:49 +00:00
<param name= "o" > the structure to marshal</param>
<summary > Marshals a structure to newly-allocated memory.</summary>
<returns > a pointer to the newly-allocated memory</returns>
<remarks > This is like <see cref= "M:System.Runtime.InteropServices.Marshal.StructureToPtr" /> except that it allocates the memory for the unmanaged copy itself. You should free the memory with <see cref= "M:System.Runtime.InteropServices.Marshal.FreeHGlobal" /> when you are done with it.</remarks>
<since version= "Gtk# 2.4" />
</Docs>
</Member>
<Member MemberName= "time_tToDateTime" >
<MemberSignature Language= "C#" Value= "public static DateTime time_tToDateTime (IntPtr time_t);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.DateTime</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "time_t" Type= "System.IntPtr" />
</Parameters>
<Docs >
<param name= "time_t" > a <see cref= "T:System.IntPtr" /> </param>
<summary > Marshals native time_t values to DateTime values.</summary>
<returns > a <see cref= "T:System.DateTime" /> </returns>
2008-02-29 23:42:27 +00:00
<remarks />
</Docs>
</Member>
2009-01-06 16:29:49 +00:00
<Member MemberName= "Utf8PtrToString" >
<MemberSignature Language= "C#" Value= "public static string Utf8PtrToString (IntPtr ptr);" />
2008-02-29 23:42:27 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
2009-01-06 16:29:49 +00:00
<ReturnType > System.String</ReturnType>
2008-02-29 23:42:27 +00:00
</ReturnValue>
<Parameters >
2009-01-06 16:29:49 +00:00
<Parameter Name= "ptr" Type= "System.IntPtr" />
2008-02-29 23:42:27 +00:00
</Parameters>
<Docs >
2009-01-06 16:29:49 +00:00
<param name= "ptr" > a <see cref= "T:System.IntPtr" /> </param>
<summary > Marshals a native Utf8 string to a managed string.</summary>
<returns > a <see cref= "T:System.String" /> </returns>
2008-02-29 23:42:27 +00:00
<remarks />
2009-01-06 16:29:49 +00:00
<since version= "Gtk# 2.4" />
2008-02-29 23:42:27 +00:00
</Docs>
</Member>
2009-01-06 16:29:49 +00:00
<Member MemberName= "Utf8PtrToString" >
<MemberSignature Language= "C#" Value= "public static string[] Utf8PtrToString (IntPtr[] ptrs);" />
2008-02-29 23:42:27 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
2009-01-06 16:29:49 +00:00
<ReturnType > System.String[]</ReturnType>
2008-02-29 23:42:27 +00:00
</ReturnValue>
<Parameters >
2009-01-06 16:29:49 +00:00
<Parameter Name= "ptrs" Type= "System.IntPtr[]" />
2008-02-29 23:42:27 +00:00
</Parameters>
<Docs >
2009-01-06 16:29:49 +00:00
<param name= "ptrs" > a <see cref= "T:System.IntPtr" /> </param>
<summary > Marshals an array of native Utf8 strings to an array of managed strings.</summary>
<returns > a <see cref= "T:System.String[]" /> </returns>
2008-02-29 23:42:27 +00:00
<remarks />
2009-01-06 16:29:49 +00:00
<since version= "Gtk# 2.4" />
2008-02-29 23:42:27 +00:00
</Docs>
</Member>
2003-08-30 02:35:39 +00:00
</Members>
2005-05-23 20:41:51 +00:00
</Type>