2004-12-09 Mike Kestner <mkestner@novell.com>
* gtkhtml/HTML.custom : add an back-compat obsolete overload for Write. * gtkhtml/HTMLStream.custom : add an obsolete overload for Write. svn path=/trunk/gtk-sharp/; revision=37516
This commit is contained in:
parent
62977484e6
commit
84e058dd1a
5 changed files with 52 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-12-09 Mike Kestner <mkestner@novell.com>
|
||||
|
||||
* gtkhtml/HTML.custom : add an back-compat obsolete overload for Write.
|
||||
* gtkhtml/HTMLStream.custom : add an obsolete overload for Write.
|
||||
|
||||
2004-12-09 Mike Kestner <mkestner@novell.com>
|
||||
|
||||
* generator/Makefile.am : new files.
|
||||
|
|
|
@ -2084,5 +2084,24 @@ class X {
|
|||
<remarks>Override this method in a subclass to provide a default handler for the <see cref="M:Gtk.HTML.UrlRequested" /> event.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Write">
|
||||
<MemberSignature Language="C#" Value="public void Write (Gtk.HTMLStream handle, string buffer, int size);" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Void</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters>
|
||||
<Parameter Name="handle" Type="Gtk.HTMLStream" />
|
||||
<Parameter Name="buffer" Type="System.String" />
|
||||
<Parameter Name="size" Type="System.Int32" />
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<summary>Writes <paramref name="size" /> bytes of content from <paramref name="buffer" /> to <paramref name="handle" />.</summary>
|
||||
<param name="handle">a <see cref="T:Gtk.HTMLStream" /></param>
|
||||
<param name="buffer">a <see cref="T:System.String" /></param>
|
||||
<param name="size">a <see cref="T:System.Int32" /></param>
|
||||
<remarks>This overload of this method is obsolete. Use the overload with ulong size for 64 bit safety. </remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
</Type>
|
||||
|
|
|
@ -160,5 +160,22 @@
|
|||
<remarks />
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Write">
|
||||
<MemberSignature Language="C#" Value="public void Write (byte [] buffer, int size);" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Void</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters>
|
||||
<Parameter Name="buffer" Type="System.Byte[]" />
|
||||
<Parameter Name="size" Type="System.Int32" />
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<summary>Write the HTML to <paramref name="buffer" />.</summary>
|
||||
<param name="buffer">a <see cref="T:System.Byte" /></param>
|
||||
<param name="size">a <see cref="T:System.Int32" /></param>
|
||||
<remarks>This overload is obsolete. Use the ulong size overload instead for 64 bit safety.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
</Type>
|
||||
|
|
|
@ -48,4 +48,9 @@
|
|||
Raw = gtk_html_new_from_string(Astr, Astr.Length);
|
||||
}
|
||||
|
||||
[Obsolete ("Use the ulong overload instead.")]
|
||||
public void Write (HTMLStream handle, string buffer, int size)
|
||||
{
|
||||
Write (handle, buffer, (ulong) size);
|
||||
}
|
||||
|
||||
|
|
|
@ -19,6 +19,12 @@
|
|||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
[Obsolete ("Use the ulong overload instead.")]
|
||||
public void Write (byte[] buffer, int size)
|
||||
{
|
||||
Write (buffer, (ulong) size);
|
||||
}
|
||||
|
||||
public void Write (string buffer)
|
||||
{
|
||||
byte [] bytes = System.Text.Encoding.UTF8.GetBytes (buffer);
|
||||
|
|
Loading…
Reference in a new issue