glib-sharp 2.10.0.0 Gtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details. Marshalling utilities Utility class for internal wrapper use System.Object Method System.String Marshals a utf8 string from native memory and frees the native string. a a Method System.String[] Marshals an array of utf8 string from native memory and frees the native strings. a a Method System.IntPtr Marshal a string to a native Utf8 string using GLib memory allocation. a a Method System.IntPtr Obsolete. a a Replaced by Method System.String[] Obsolete. a a a Replaced by Method System.IntPtr Marshals DateTime structures to native time_t values. a a Method System.DateTime Marshals native time_t values to DateTime values. a a Method System.Char Marshals a UCS4 character represented as an uint to a UTF16 char. a a Method System.UInt32 Marshals a UTF16 char to a UCS4 character represented as an uint. a a Method System.String System.ParamArray Wrapper for marshalling between String.Format-style methods and printf-style ones a -style format string arguments for a This is a wrapper for marshalling between managed String.Format-style methods and unmanaged printf-style ones. The managed function should take a format, and a array of , and pass that to . 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). Method System.String Marshals a native Utf8 string to a managed string. a a Method System.String[] Marshals an array of native Utf8 strings to an array of managed strings. a a Method System.IntPtr the structure to marshal Marshals a structure to newly-allocated memory. a pointer to the newly-allocated memory This is like except that it allocates the memory for the unmanaged copy itself. You should free the memory with when you are done with it. Method System.Void Free a native pointer allocated by GLib. a Method System.String A native filename-encoded string pointer. Marshals a native filename-encoded string to a managed string. A managed string. The native pointer is not freed after marshaling. Use with const strings. Method System.String A native filename-encoded string pointer. Marshals a native filename-encoded string to a managed string. A managed string. The native pointer is freed after marshaling. Method System.IntPtr A managed string to be marshaled. Marshals a string to a filename encoded native pointer. A pointer to a newly allocated native string. Method System.Array The list to be marshaled. The type of the list elements. Marshals a native list to a typed array. An array of .