TextBuffer.serialize

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.TextBuffer.registerSerializeFormat or gtk.text_buffer.TextBuffer.registerSerializeTagset beforehand.

Parameters

contentBuffer gtk.text_buffer.TextBuffer

the #GtkTextBuffer to serialize

format gdk.atom.Atom

the rich text format to use for serializing

start gtk.text_iter.TextIter

start of block of text to serialize

end gtk.text_iter.TextIter

end of block of test to serialize

Return Value

Type: ubyte[]

the serialized data, encoded as format