Function

GtkTextBufferSerializeFunc

Declaration

guint8*
TextBufferSerializeFunc (
  GtkTextBuffer* register_buffer,
  GtkTextBuffer* content_buffer,
  const GtkTextIter* start,
  const GtkTextIter* end,
  gsize* length,
  gpointer user_data
)

Description [src]

A function that is called to serialize the content of a text buffer. It must return the serialized form of the content.

Parameters

register_buffer GtkTextBuffer
 

The GtkTextBuffer for which the format is registered.

 The data is owned by the caller of the function.
content_buffer GtkTextBuffer
 

The GtkTextBuffer to serialize.

 The data is owned by the caller of the function.
start GtkTextIter
 

Start of the block of text to serialize.

 The data is owned by the caller of the function.
end GtkTextIter
 

End of the block of text to serialize.

 The data is owned by the caller of the function.
length gsize*
 

Return location for the length of the serialized data.

 The data is owned by the caller of the function.
user_data gpointer
 

User data that was specified when registering the format.

Return value

Returns: guint8*
 

A newly-allocated array of guint8 which contains the serialized data, or NULL if an error occurred.

 The data is owned by the called function.
 The return value can be NULL.