some docs for new marshalers

svn path=/trunk/gtk-sharp/; revision=41460
This commit is contained in:
Mike Kestner 2005-03-04 19:04:57 +00:00
parent 0b0700bae6
commit f156babb71
2 changed files with 39 additions and 7 deletions

View file

@ -29,10 +29,10 @@
<Parameter Name="ptr" Type="System.IntPtr" />
</Parameters>
<Docs>
<summary>To be added</summary>
<summary>Marshals a utf8 string from native memory and frees the native string.</summary>
<param name="ptr">a <see cref="T:System.IntPtr" /></param>
<returns>a <see cref="T:System.String" /></returns>
<remarks>To be added</remarks>
<remarks />
</Docs>
</Member>
<Member MemberName="PtrToStringGFree">
@ -45,7 +45,7 @@
<Parameter Name="ptrs" Type="System.IntPtr[]" />
</Parameters>
<Docs>
<summary>To be added</summary>
<summary>Marshals an array of utf8 string from native memory and frees the native strings.</summary>
<param name="ptrs">a <see cref="T:System.IntPtr[]" /></param>
<returns>a <see cref="T:System.String[]" /></returns>
<remarks>To be added</remarks>
@ -61,10 +61,10 @@
<Parameter Name="str" Type="System.String" />
</Parameters>
<Docs>
<summary>To be added</summary>
<summary>Marshal a string to a native Utf8 string using GLib memory allocation.</summary>
<param name="str">a <see cref="T:System.String" /></param>
<returns>a <see cref="T:System.IntPtr" /></returns>
<remarks>To be added</remarks>
<remarks />
</Docs>
</Member>
<Member MemberName="ArgvToArrayPtr">
@ -185,5 +185,37 @@
<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>
</Docs>
</Member>
<Member MemberName="Utf8PtrToString">
<MemberSignature Language="C#" Value="public static string Utf8PtrToString (IntPtr ptr);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="ptr" Type="System.IntPtr" />
</Parameters>
<Docs>
<summary>Marshals a native Utf8 string to a managed string.</summary>
<param name="ptr">a <see cref="T:System.IntPtr" /></param>
<returns>a <see cref="T:System.String" /></returns>
<remarks />
</Docs>
</Member>
<Member MemberName="PtrToStructureAlloc">
<MemberSignature Language="C#" Value="public static IntPtr PtrToStructureAlloc (object o);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.IntPtr</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="o" Type="System.Object" />
</Parameters>
<Docs>
<summary>To be added</summary>
<param name="o">a <see cref="T:System.Object" /></param>
<returns>a <see cref="T:System.IntPtr" /></returns>
<remarks>To be added</remarks>
</Docs>
</Member>
</Members>
</Type>

View file

@ -1,5 +1,5 @@
<Type Name="ModuleInitFunc" FullName="Gtk.ModuleInitFunc">
<TypeSignature Language="C#" Maintainer="auto" Value="public sealed delegate void ModuleInitFunc (out int argc, string argv);" />
<TypeSignature Language="C#" Maintainer="auto" Value="public sealed delegate void ModuleInitFunc (out int argc, string [] argv);" />
<AssemblyInfo>
<AssemblyName>gtk-sharp</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>