Permalink
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (26 sloc) 1.06 KB
// Rsvg.Handle.custom - Rsvg Handle class customizations
//
// Copyright (C) 2007 Novell, Inc.
//
// This code is inserted after the automatically generated code.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of version 2 of the Lesser GNU General
// Public License as published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this program; if not, write to the
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
// Boston, MA 02111-1307, USA.
public unsafe bool Write (byte[] buf, ulong count)
{
IntPtr error;
bool result = rsvg_handle_write (Handle, buf, new UIntPtr (count), out error);
if (error != IntPtr.Zero) throw new GLib.GException (error);
return result;
}