Method

GtkTextBufferserialize

Declaration [src]

guint8*
gtk_text_buffer_serialize (
  GtkTextBuffer* register_buffer,
  GtkTextBuffer* content_buffer,
  GdkAtom format,
  const GtkTextIter* start,
  const GtkTextIter* end,
  gsize* length
)

Description [src]

This function serializes the portion of text between start and end in the rich text format represented by format.

formats to be used must be registered using gtk_text_buffer_register_serialize_format() or gtk_text_buffer_register_serialize_tagset() beforehand.

Available since:2.10

Parameters

content_buffer GtkTextBuffer
 

The GtkTextBuffer to serialize.

 The data is owned by the caller of the function.
format GdkAtom
 

The rich text format to use for serializing.

start GtkTextIter
 

Start of block of text to serialize.

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

End of block of test to serialize.

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

Return location for the length of the serialized data.

 The argument will be set by the function.

Return value

Returns: An array of guint8
 

The serialized data, encoded as format.

 The length of the array is in the length argument.
 The caller of the method takes ownership of the data, and is responsible for freeing it.